Button Push event issue

I've created an event that draws a picture when the player pushes a button and then erases the picture when the player pushes the button again. It works exactly the way I want it to. The difficulty is that the button does not actually stay pushed down. As soon as it finishes executing the commands on the second event page, it pop the button back into its upright position from the first page.

button.png
well, you set A to off so it will return to page 1...


I suggest putting those two commands from page 2 into page 1, remove the conditional branch, set A to ON after everything... then make Page 2 as action triggered too using the "pushed" sprite... then make it's event commands: erase picture,then A to OFF...


no need for the third page
Thanks! That is much simpler. I was over-thinking the issue.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/button-push-event-issue.23022/