Just a little question How can I use "Double click to rotate an actor "

GSAnimatorGSAnimator Member Posts: 312
edited March 2012 in Working with GS (Mac)
I wanna make a ball game just like ""Bubble Ball" But there's a problem here I wanna double click to rotate actor can anyone tell me how to do that ?

Comments

  • fzeedfzeed Member Posts: 247
    you can have it detect 2 touches. So if the actor receives 2 touches it rotates by 15 degrees or something.
    or
    have a counter. Make an attrib Taps as integer. then if the actor is touched have taps=taps+1. Also have a timer, every.5 seconds taps=0. if taps=2 then rotate. The timer resets the taps because if you didn't, the user could tap now and then tap 5 minutes later and it would still increment the Taps and see it has a double tap.
  • fzeedfzeed Member Posts: 247
    Awesome! Glad it worked out.
Sign In or Register to comment.