Backing out of puzzle event with Esc button

Hi!
I am in a bit of trouble here - I am using Picture Common Events .
Made this small check/uncheck visual puzzle that is all fine and dandy but I can't figure out how to back out of it when the puzzle isn't solved yet (ex. if the player wants to exit out of it and go to the other room to check the solution again). I tried to use break loop and conditional branches if Cancel is pressed down but it doesn't work at all. Any help with this?
1726217667721.png
At least, you need to put that if inside a paralell event.
Or you need a button common event plugin and bind the esc button to a common event.
At least, you need to put that if inside a paralell event.
Or you need a button common event plugin and bind the esc button to a common event.
I really thought parallel erasing event would prevent the pictures from appearing at all, but it seems like everything should work fine with it. Thanks, I will try it out!
You just need to change the erase part. But I suggest you find a button common event plugin (just search it).
@virve12
to really help you, we would have to see the entire event with its properties.
the contents of the event alone are not enough, because too many things depend on its properties like trigger, page number, conditions and more.

a lot of event commands work differently based on context - break loop for example only works inside a declared loop command, wait pauses in an action button trigger but reduces lag in a parallel process, exit event processing leaves an action button event but restarts a parallel process or autorun...

never reduce the event to content only if you're doing screenshots.
As Andar says, half of that event is wrong, but we can't tell which half because you cropped it.

If the event isn't parallel, then checking for a button to be pressed will do nothing.

If it is parallel, none of those show picture commands should be in it.

Original thread: https://forums.rpgmakerweb.com/threads/backing-out-of-puzzle-event-with-esc-button.171865/