Cycle through then back to start? Really simple probably

This is probably a really simple thing to do, but I haven't been able to find how to do it.

All I need is an actor that when pressed changes attribute to attribute+1 then when it reaches a certain number, the next time you press it it goes to zero instead of increasing by one again.

Any help would be appreciated, thanks

Mattcus

Best Answer

  • DigiChainDigiChain Posts: 1,288
    Accepted Answer

    Rule - Change Attribute:
    (game.attribute+1)%3 - this will count 0,1,2,0,1,2...

Sign In or Register to comment.