[SOLVED] Conditional Branch- Close Menu

hello! quick question- is there a way to configure something like
if menu close
erase picture

The closest thing I've got is if cancel button is pressed erase picture but it doesn't run as smoothly as a regular menu close. Please advise!
I don't think I understand what exactly you're trying to do. If you could provide some better context I may be able to assist.
I second what BlackGoldSaw says because the "Menu" could refer to the pause menu but the menu is an entirely separate scene that does not support pictures. Could we see a screenshot of your event data so we could have a better idea of your intentions?
Hello @Gensun and @BlackGoldSaw

Sorry for the lack of clarity! I am currently setting up a common event menu as chapter select option on my title screen and wanted to place an image as its background, so whenever the menu closes I want to hide the picture. However, I found that using the button (cancel) method makes the rest of my image based title screen not work when I select the same menu again.

Screen Shot 2024-01-06 at 18.56.02.png
This is tricky because this is essentially a cutscene and won't run as smoothly as something "traditionally coded" if that makes sense. Because of the wait command you added, button presses aren't registered until every other 8 frames which will contribute to the lack of responsiveness.

1704539525912.png


My suggestion is to structure the event this way so the plugin commands aren't spammed and instead execute only once. Set the wait time to 1 frame so every instance, the game will look if the cancel button is pressed.

That said I'm sensing there's additional issues aside for lack of responsivity and I don't know your plugins well enough to know right away what they do
This is tricky because this is essentially a cutscene and won't run as smoothly as something "traditionally coded" if that makes sense. Because of the wait command you added, button presses aren't registered until every other 8 frames which will contribute to the lack of responsiveness.

View attachment 290852

My suggestion is to structure the event this way so the plugin commands aren't spammed and instead execute only once. Set the wait time to 1 frame so every instance, the game will look if the cancel button is pressed.

That said I'm sensing there's additional issues aside for lack of responsivity and I don't know your plugins well enough to know right away what they do
Thank you so much! It seems to work much smoother now. I also added an extra erase line after the End to make sure the image is gone, and that seems to work even when I spam the command. 🙂

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/solved-conditional-branch-close-menu.164522/