Every 3 times activate action how?
![Tucc](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi all.
I want to have a particular action to occur after a button is pressed 'every' 3 times.
I don't want to do this:
When touch is pressed
-change attribute game.integer to game.integer+3
and then have in my action actor.
when attribute game.integer=3
when attribute game.integer=6
...
...
Is there any way to have an affective way of doing this?
@jonmulcahy
I want to have a particular action to occur after a button is pressed 'every' 3 times.
I don't want to do this:
When touch is pressed
-change attribute game.integer to game.integer+3
and then have in my action actor.
when attribute game.integer=3
when attribute game.integer=6
...
...
Is there any way to have an affective way of doing this?
@jonmulcahy
Comments
change attribute game.attribute to game.attribute+1
in your actor
rule when game.attribute =3 do your rules
rule when game.attribute = 3
change to game.attribute to 0