This is probably a simple fix, but I'm at my wits end trying to figure it out.
I have a Common Event Picture Based Window that works well EXCEPT I can't figure out how to exit out of it by using the ESC key a second time. I've tried variables, switches, autorun common events and nothing works.
I want the player to hit ESC to bring up the Common Event Menu, and once the player is done, be able to hit ESC again to exit the menu.
Right now with what I have, the Menu doesn't even bring up (but the SE plays, so I know it's trying to). If I don't put in a Conditional Branch saying "Script:Input.isTriggered("#esc");" then the menu works great, but I can't exit out of it.
I've included pictures below to explain what I mean. The code below "End" is just the code for the menu itself.
I apologize if my explanation is lacking and appreciate any help.
(Also, I'm using QInput for my Input Script Calls and Gimmer Core to Stop Player Movement in case it looks different from vanilla Script Calls).
Edit: Switching the Menu Open Event to Autorun and adding a wait of 1 frame has fixed the menu opening problem, but it still won't close.
Edit 2: I think I figured out the problem. The Common Event keeps trying to run itself if I press ESC even if I'm trying to exit out of it. I don't know how to fix that though ;w; I thought variables would work, but I can't figure out how.
I have a Common Event Picture Based Window that works well EXCEPT I can't figure out how to exit out of it by using the ESC key a second time. I've tried variables, switches, autorun common events and nothing works.
I want the player to hit ESC to bring up the Common Event Menu, and once the player is done, be able to hit ESC again to exit the menu.
Right now with what I have, the Menu doesn't even bring up (but the SE plays, so I know it's trying to). If I don't put in a Conditional Branch saying "Script:Input.isTriggered("#esc");" then the menu works great, but I can't exit out of it.
I've included pictures below to explain what I mean. The code below "End" is just the code for the menu itself.
I apologize if my explanation is lacking and appreciate any help.
(Also, I'm using QInput for my Input Script Calls and Gimmer Core to Stop Player Movement in case it looks different from vanilla Script Calls).
Edit: Switching the Menu Open Event to Autorun and adding a wait of 1 frame has fixed the menu opening problem, but it still won't close.
Edit 2: I think I figured out the problem. The Common Event keeps trying to run itself if I press ESC even if I'm trying to exit out of it. I don't know how to fix that though ;w; I thought variables would work, but I can't figure out how.