toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
When Double Tapped Stop Rotation
aandi
Member
Posts:
99
September 2011
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
aandi
Member
Posts:
99
September 2011
bump
aandi
Member
Posts:
99
September 2011
help please,
liamo
Member
Posts:
191
September 2011
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
sebmacfly
Member
Posts:
1,018
September 2011
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
aandi
Member
Posts:
99
September 2011
number of taps or double tap what attribute is this
aandi
Member
Posts:
99
September 2011
bump
Sign In
or
Register
to comment.
Comments
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
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