Cancel SceneManager on custom-made title?

Hello guys,

I made a custom title inside a map with several events
and made it to let the loading and option menu pop up with the scripts:

SceneManager.push(Scene_Load);
and
SceneManager.push(Scene_Options);

But the problem happens when I cancel each menu, by pressing "X", the screen stays black without going back to the title that I made.

My RMMV is installed in Korean, so I hope these images might help you understand my situation.
Thanks!

화면 캡처 2023-10-06 231603.png

press "Z" -> SceneManager.push(Scene_Load);
화면 캡처 2023-10-06 231706.png

press "X" -> Black Screen
1696602515285.png
We can't really give you advice on what you're doing wrong without seeing screenshots of the actual events.
Did you make a loop, or an autorun event? Or maybe send your commands around using labels?
If the answer to all that is no, then that is probably the problem. This thing will not repeat just by itself, you have to make it repeat itself.
We can't really give you advice on what you're doing wrong without seeing screenshots of the actual events.
Thx for the reply,
i just changed the system language.
here is what happens:

1696604996675.png
Did you make a loop, or an autorun event? Or maybe send your commands around using labels?
If the answer to all that is no, then that is probably the problem. This thing will not repeat just by itself, you have to make it repeat itself.
Thx for your reply!



No, I made it with a Parallel event.

I'm quite a newbie in developing games, so can you show me any useful links on making it repeat?
Ah... Your "if cancel is pressed" is inside the "If ok is pressed".

You could try not to have a condition for "if cancel is pressed" condition. Because this would only trigger if the player would hold X down, instead of tapping it (because you did a wait 10 frames)

Just put the commands from in the condition, straight after "wait 10 frames"
Ah... Your "if cancel is pressed" is inside the "If ok is pressed".

You could try not to have a condition for "if cancel is pressed" condition. Because this would only trigger if the player would hold X down, instead of tapping it (because you did a wait 10 frames)

Just put the commands from in the condition, straight after "wait 10 frames"
Wow, you just saved me so much.
thx for your kind help, It just works perfectly.

i didn't know about that! thx! 😀
No problem. Everything works as planned now?
No problem. Everything works as planned now?
Yes, with your advice, I arranged a few lines like this and it worked! thx agian.
1696681274647.png

But, something else I wanted to ask you for help with is about wait frame issue.
So, whenever I have to press either "the left arrow" or "the right arrow" to navigate between these custom menu buttons, they go crazy fast for some reason, so I had to put wait frame in somewhere among another event.
1696681441860.png


The problems I found were that,
1) the image of a selected menu sometimes reacts too slowly when I first start up the game.
(I have no clue why this happens like a flip of the coin.)
2) there are some delay needed before pressing "Z" button to select those menu .

Where and how long do you think should I put them without interfering with any functions?
Again, thank you so much for your help!
You still have "If X is pressed down" in there, though 😛 Like this it can't hurt, but it isn't needed.
But if it works, it works. 😛

1.) Large images can take a second to load when called upon for the first time per session. Specially if your browser is slow. To avoid this, you can use a pre-load plugin. I know some are around for MV.

2.) You don't need that "If Z is pressed" at all. After the menu is closed, just run the script. You know Z is always pressed when they leave the menu, so there is no way Z is not pressed when you run that condition. And you want that to run anyway, when the menu is closed, right?
So, copy whatever is in that condition, then delete the condition and put those commands you just copied in its place.

Sometimes there is a delay needed to finish the animation of showing/closing windows. This delay is needed after you close a window (can be a menu or a message), and before you force open the menu. So right before you did the script call. 7 frames seems to be the magic number. Any less will fail and you might get overlapping windows.
You still have "If X is pressed down" in there, though 😛 Like this it can't hurt, but it isn't needed.
But if it works, it works. 😛

1.) Large images can take a second to load when called upon for the first time per session. Specially if your browser is slow. To avoid this, you can use a pre-load plugin. I know some are around for MV.

2.) You don't need that "If Z is pressed" at all. After the menu is closed, just run the script. You know Z is always pressed when they leave the menu, so there is no way Z is not pressed when you run that condition. And you want that to run anyway, when the menu is closed, right?
So, copy whatever is in that condition, then delete the condition and put those commands you just copied in its place.

Sometimes there is a delay needed to finish the animation of showing/closing windows. This delay is needed after you close a window (can be a menu or a message), and before you force open the menu. So right before you did the script call. 7 frames seems to be the magic number. Any less will fail and you might get overlapping windows.
Thank you so much for your advice, John!
Been busy with something else, so it took me to check your reply.
Now I have time to struggle with it again and will let you know if something happens!
thx for your kind help! 😀

Original thread: https://forums.rpgmakerweb.com/threads/cancel-scenemanager-on-custom-made-title.161788/