In my game, i make a button. If you click on the button, i want the button changed in to on other button. But it doesn't work. I have make a little game from the problem:
What do i wrong? And how can i fix it?
I would do it differentially - with animation frames, something like this:
In your example, both boxes receives click in the same tick, so all the commands are executed and boxes returns to previous states. That would be my guess.
Develop games in your browser. Powerful, performant & highly capable.
Thank you! It works.