How to make a double tap rule?

aalzankiaalzanki Member Posts: 283
edited November -1 in Working with GS (Mac)
Hi,

I tried to make a double tap rule but i couldn't get it :(

Any help please?

Regards,
aalzanki

Comments

  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    X = double tap speed in seconds

    Rule: (All) When Touch pressed AND self.tap1 = False
    -- Timer: (run to completeion = Y) After X secs: Change self.tap1 = False
    -- Change self.tap1 = True

    Rule: (All) When touch pressed AND self.tap1 = True
    -- do double tap action(s) here
  • aalzankiaalzanki Member Posts: 283
    Thanks, it worked :)
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    Really? LOL

    It seemed like sound logic, but I didn't get a chance to test it... ;-)
  • BarkBarkCoBarkBarkCo Member Posts: 1,400
    I went ahead and tested the above solution and found that it is still triggering on the first click/tap.

    I've uploaded a demo that shows a better solution:

    http://gamesalad.com/game/play/78920
  • aalzankiaalzanki Member Posts: 283
    Yeah, I did edit on it a little bit
Sign In or Register to comment.