I am trying to make this block sprite change to "block1" animation when I click with the left mouse button and then go back to animation "block0" when I click the left mouse button again. But the way I did, when I click nothing happen, how do I do this? Why is not working?
This is the way a did:
I litteraly spent a whole day trying to discover this, pls help.
It`s just because both events are working together. Just add "Is animation block0 playing" to the first event.
It didn't work. Nothing happens :-(
Develop games in your browser. Powerful, performant & highly capable.
The problem is because the animation is changing too fast. Try this
It worked, thanks! But let me see if I understood...It did not work because when I clicked on the sprite it changed so fast that in the same time I clicked in the "block1" animation and it go back to "block0" animation? 0-o
Don't break up your logic. Catch the click first, then use sub-events to further decode the state. Don't use "wait" - that is not the correct way to fix this.