When Double Tapped Stop Rotation

aandiaandi Member Posts: 99
edited November -1 in Working with GS (Mac)
hi

what code do you put for when ever you double tap an actor stop rotation

Comments

  • aandiaandi Member Posts: 99
    bump
  • aandiaandi Member Posts: 99
    help please,
  • liamoliamo Member Posts: 191
    Not sure this will work, im thinking of the top of my head.
    When touch is pressed
    Attribute numoftaps +1

    If numoftaps is < 2
    rotate

    If numoftaps is > 2
    Change attribute numoftaps to 0

    I don't know if this will work, but good luck
    Liamo
  • sebmacflysebmacfly Member Posts: 1,018
    Try this :

    RULE, when touch is pressed
    -Change attribute game.doubletap to game.doubletap+1
    -Timer, after 1.5 secs, change attribute game.doubletap to 0

    RULE, when attribute game.doubletap=2
    -Do what you want
    -Change attribute game.doubletap to 0
  • aandiaandi Member Posts: 99
    number of taps or double tap what attribute is this
  • aandiaandi Member Posts: 99
    bump
Sign In or Register to comment.