Slide To Unlock

SoftboySoftboy Member, PRO Posts: 43
edited April 2012 in Working with GS (Mac)
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

Best Answers

  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    edited April 2012 Accepted Answer
    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.
  • JohnPapiomitisJohnPapiomitis Posts: 6,256
    edited April 2012 Accepted Answer
    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
Sign In or Register to comment.