Slide To Unlock
Last year I found a tutorial for a "Slide To Unlock" function in Gamesalad. Has anybody got a link on youtube or elsewhere on how to obtain this?
I am talking about a slider in the buttom of the screen that usually is used to unlock the iPhone.
Best Regards
SoftBoy
http://itunes.apple.com/dk/app/baby-disco/id517598749?l=da&mt=8
I am talking about a slider in the buttom of the screen that usually is used to unlock the iPhone.
Best Regards
SoftBoy
http://itunes.apple.com/dk/app/baby-disco/id517598749?l=da&mt=8
Best Answers
-
JohnPapiomitis Posts: 6,256
When touched just constrain the sliders position x to mouse position x with a min and max expression so it cant go past the limits. Then have a rule when self position x = whatver, do whatever you want. -
JohnPapiomitis Posts: 6,256
constrain self position x to max(100,min(300,mouse.position.x))
Theres the min and max expression for you. Replace the 100 with the left limit of the slider, and replace the 300 with the right limit of the slider.
cheers
Answers
http://itunes.apple.com/dk/app/baby-disco/id517598749?l=da&mt=8