Every 3 times activate action how?

TuccTucc Member Posts: 0
edited September 2012 in Working with GS (Mac)
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

Comments

  • xforcexforce Member Posts: 187
    edited September 2012
    when touch is pressed
    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
Sign In or Register to comment.