GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Double tap

b2iscoolb2iscool Posts: 135Member
How can i make it so if someone double taps it will do somthing?

Comments

  • calvin9403calvin9403 Posts: 3,190Member
    I know a bad way but there is better ways to do it, I shouldn't post the bad way
  • JohnPapiomitisJohnPapiomitis Posts: 6,256Member
    make a interger attribute called double tap, set it to 0

    have a rule in the actor when actor recieves event touch is pressed change attribute double tap to double tap+1

    in that same when touch is pressed rule, put a timer in and put after 1 second change attribute double tap to 0 with run to completion checked

    then for whatever you want to do when theres a double tap, have a rule when attribute double tap=2 then put whatever behaviors you like

    cheers
  • calvin9403calvin9403 Posts: 3,190Member
    JohnPapiomitis said:
    make a interger attribute called double tap, set it to 0

    have a rule in the actor when actor recieves event touch is pressed change attribute double tap to double tap+1

    in that same when touch is pressed rule, put a timer in and put after 1 second change attribute double tap to 0 with run to completion checked

    then for whatever you want to do when theres a double tap, have a rule when attribute double tap=2 then put whatever behaviors you like

    cheers

    I thought there was a better way, I might be wrong
    Calvin
This discussion has been closed.