What I’m trying to do here is when that I click the button while its current animation is “BasicN” it changes to “BasicY”, and if its clicked while its “BasicY” it goes to “BasicN” (There is going to be more to it but this is all you need to know)
The problem is that one of these events doesn’t work, and I don’t know how to fix it
There is no other events that change the button’s animation, it just refuses to work
The problem you have is that the actions of the first event will meet the conditions of the second event.
If BasicY and BasicN are the only 2 animations for the sprite, you could just change the animation by number, rather than name. You can do this with:
This will increase the button animation by 1, and then take the remainder when it’s divided by 2 (via the mod
expression)
1 Like