i need help, rule only works once.
i have a actor that it start position is x=38 and y=46, during the level it can change location, so after level is done, i have a actor "play again" when touch is pressed change game.reset-scene to true
and my my other actor i have a rule when game.reset-scene is true to change x position to 38 and y position to 46, it works the first time but the second time no, so i though maybe because game.reset-scenete is already true, so in my "play again actor" i made it to when is touched to changed to false first and then to true but is not working.
and my my other actor i have a rule when game.reset-scene is true to change x position to 38 and y position to 46, it works the first time but the second time no, so i though maybe because game.reset-scenete is already true, so in my "play again actor" i made it to when is touched to changed to false first and then to true but is not working.
Comments
So:
Every X seconds,
Rule if XXXXX
Change location.
It won't turn on over and over again, because there's a rule inside. So it's safe to use
OR
If you want to change game.reset from false to true, and from true to false, make it an integer, and put a rule:
If touch is pressed,
Change attribute game.reset to (game.reset+1)%2
It's more simple than making it false/true.