If I position a Sprite at (0,0) and create a Variable called "y-position" I can display a slider in the Stage that will allow me to move the Sprite up and down between y=0 and y=100. But that doesn't even get the Sprite to the top of the Stage. I would like to use the Slider to move the Sprite from the top to the bottom of the Stage so someone could, for example, move the Sprite everywhere in search of something hidden. But my math isn't up to creating an expression that would expand the Sprite's y-position. (And I'd want to do the same thing with the X-position too, of course.) Can anyone help?
Offline
You can right click (control click) or just normal click in 1.4 on the variable and set the slider min and max. So make the min -180 and max 180.
Then create another variable for X and set min to -240 and max to 240.
I think the scratch area is 360 pixels high? Tell me if I'm wrong.
Last edited by juststickman (2009-07-17 12:31:16)
Offline
WOW!!!! Thanks, Juststickman! I've wanted to set the range of sliders for a long time and had no idea how to do it. You've just opened up lots of new territory for me. And yes, the Scratch stage is 360 pixels in height. Thanks!
Offline