I wish the Esc key would quit the game when you press it. Is there a way to make Esc the quit-the-game key?
[VX Ace] Esc Key = Quit Game
RGSS3 Script RequestsNot by default I'm afraid. You'll need a script to do this at minimum.
Moving to Script Requests
The script call: SceneManager.exit will close the game.
You could make a common event which checks for a button press from there.
You could make a common event which checks for a button press from there.
Hmm, well you'd have to set the menu to a different key. So, in Scene_Map, find the the line where it says something similar to
It should be on line 182. Change the B in the brackets to whatever you want, just press F1 in game to see which key corresponds to what.
As for making it so that the escape button quits the game, you make a parallel process in your first map that checks if the escape button is pressed. (Conditional branch: The B button is being pressed) Then you do a script call within the conditional branch.
SceneManager.exit
Code:
@menu_calling ||= Input.trigger?(:B)
As for making it so that the escape button quits the game, you make a parallel process in your first map that checks if the escape button is pressed. (Conditional branch: The B button is being pressed) Then you do a script call within the conditional branch.
SceneManager.exit
Thank you, I'll try this out too
Thank you
Thank you, I'll try this out.
Both methods work! 🙂
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/vx-ace-esc-key-quit-game.78658/