How to PAUSE the game

Hello! 🙂

I need to pause the game using a plugin command or a script code inside an event, and be able to resume the game clicking (touching) anywhere (or an specific event or option).

How do I Pause the game and resume the game with only touch?

I'm using the plugin OrangeHud wit the OrangeHudFixPicture to create a Button on the screen, which activates a common event. In that common event I have my pause menu, so I need to stop the npc's and the paralell processes there.

Any solution?

Thank you! 😉
you want to disable clicking? or you want to show the pause screen?
The game will be for smartphone, so disabling the click/touch will be then difficult for the player to resume the game.

I want to show the pause screen first, and then I want to know if its possible to unpause the game touching the screen or touching somewhere.
To completely pause the game, you would need to prevent SceneManager.requestUpdate() from being called and also backup all sound buffers from the AudioManager.


The downside: Afterwards, NOTHING will works anymore, because you have completely stopped the game. So, you would need to also provide your own update method, that listens to input, renders a pause scene and resumes the game at some point.


You can take a look at the GameFocus plugin, although it doesn't pause all sounds and attempts to automatically pause/resume the game, when it loses and gains focus.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-pause-the-game.53430/