This must be first grade, but either I don't understand the concept or I don't know what's going on.
I created a square sprite, the idea is that if you press it, it changes to frame 1 which is blue and if you hit it again, it returns to frame 0.
To manage it I created a boolean variable called "on".
I thought it would be as simple as doing it this way:
That I play the sprite and the Boolean is fake? So I turn it on and frame 1. Then it's true? Well, when you click it does the opposite.
But when you execute, the switch is ON and it doesn't go back to false.
Another thing, if I change the order of System is on and System X is On it doesn't do the same, it doesn't even turn ON anymore.
Such a relatively simple thing and I don't see the problem.
I'm sure it's something totally silly. I know I could use "else" and it would work. But I don't understand why not, and why changing the order makes it even worse.
Thanks a lot