Rotating a Slider

Hi,

I was wondering how you get a slider that goes from top to bottom? The examples shown in the documentation always have it so that the 0 value is at the bottom of the slider, and the 100 is at the top, but i would like it in reverse. 

For the program I’m making i would like a slider the basically moves an object up and down the screen, so ideally I could just say

local function sliderListener( event )
    playerObject.y = event.value * 4.8
end

Any ideas?

Maybe:

playerObject.y = (100 - event.value) * 4.8

???

Rob

Genius! I knew there was a super simple equation that would do it but i just couldn’t think of it.

Thank you!

Maybe:

playerObject.y = (100 - event.value) * 4.8

???

Rob

Genius! I knew there was a super simple equation that would do it but i just couldn’t think of it.

Thank you!