Eli Pause Game - Works like the old retro games!

GjLPhgJ.png

Author: Hakuen Studio​

Introduction

• This is a simple plugin that adds a pause scene with a background image of your choice when you press a button on Scene_Map.

Features

• Pause the game by pressing a button when you are at the scene map(This also stops the $gameSystem.playTime()).
• Choose an image to show when the game is paused.
• It saves the current playTime(Graphics.frameCount/$gameSystem.playTime()) before you pause, and restore it after you leave the pause scene.
• Adds a screen button to be able to pause the game too.
• Play a common event when leaving the pause scene and return to the map.

How to use

To pause the game you can press the keyboard button you choose or the button on the screen.
To unpause the game, you can either press the keyboard button again or click/touch the screen.

The image of the on-screen button has to be a specific format that follows this aspect ratio:
Width: 1 | Height: 2
Ex:
Width: 100 | Height: 200

You can use the plugin command to pause the game manually too.

For MV you can use Eli.PauseGame.pauseGame()

Here is a list of the default keys of RPG Maker(Keyboard/Gamepad):
  • "tab", ■ Keyboard: tab
  • "ok", ■ Keyboard: enter, space, Z ■ Gamepad: A
  • "shift", ■ Keyboard: shift ■ Gamepad: X
  • "control", ■ Keyboard: control, alt
  • "escape", ■ Keyboard: escape, numpad0, insert, x
  • "pageup", ■ Keyboard: Q, pageup ■ Gamepad: LB
  • "pagedown", ■ Keyboard: W, pagedown ■ Gamepad: RB
  • "left", ■ Keyboard: left arrow, numpad4 ■ Gamepad: D-pad left
  • "up", ■ Keyboard: up arrow, numpad8 ■ Gamepad: D-pad up
  • "right", ■ Keyboard: right arrow, numpad6 ■ Gamepad: D-pad right
  • "down", ■ Keyboard: down arrow, numpad2 ■ Gamepad: D-pad down
  • "debug" ■ Keyboard: F9
  • "cancel" ■ Gamepad: B
  • "menu" ■ Gamepad: Y

Terms of Use
Update Log
Nice! A classic old school feature everyone loves!
looks great! is there a way i can make it just do pause on combat screens, but if your just running around in the world (out of combat) it's not active?
looks great! is there a way i can make it just do pause on combat screens, but if your just running around in the world (out of combat) it's not active?
Do you mean, that wants the pause scene to work only in Battle? And not in the map?
Version 1.1.0 - 10/16/2020
- Adapt to Eli Book 2.0.0
- Add more parameters to set the position of the button on the map.
Version 1.2.0 - 12/03/2020
- There is no need to inform a javascript keycode. Just put the desired keyboard button in the plugin parameters.
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
Version 2.1.0 - 12/25/2020
- Added a common event to play when leaving the pause scene.
Is there a way to stop the BGM when the "Pause" button is pressed and play the BGM from the middle when the "Pause" is canceled?
Is there a way to stop the BGM when the "Pause" button is pressed and play the BGM from the middle when the "Pause" is canceled?
So sorry, totally miss that...
Send me a PM if you still need it. But I will try to implement it in the next update.

Version 2.1.1 - 04/25/2021
- Added a dropdown list to choose the keyboard key to pause the game.

You will probably have to go to the plugin parameter and change the key code parameter.
Version 2.2.0 - 05/03/2021
- Added support for the gamepad.
- Requires Eli Book 3.3.0 now.
looks great! is there a way i can make it just do pause on combat screens, but if your just running around in the world (out of combat) it's not active?
Also interested for a Pause feature during Battles. Cool plugin though !
Version 3.0.0 - 08/15/2021
- The paused image doesn't need to be the same size as the screen anymore.
- Add a plugin parameter to let you overwrite the default maker keyboard/gamepad key.
- Improved the plugin parameter that sets the pause screen button position.
- Fixed a bug that the pause screen button was not hiding when changing scenes.
- Help file changes.
- Need Eli Book 4.0.0 now.
dW0mKjk.jpg
Version 3.1.0 - 09/06/2021

- Add a switch that can hide/show the pause button.
- Now the button will be hidden when the message is open.
Version 3.1.1 - 10/28/2021
- The switch used to hide the button, now is the switch that can disable the pause menu access and also keep hiding the button.
- Fixed a behavior that when the message window is open, the button will keep showing and hiding like it was blinking on the screen.
Version 5.0.0 is not compatible with my plugins that are below the 5.0.0 versions.

Version 5.0.0 - 02/05/2022

  • Updated terms of use.
Version 5.0.1 - 03/23/2022
  • Fixed a behavior that was not hiding the on-screen button even if the game map has his interpreter running.
Dear Eli, hope you are well. Amazing plugin!
But I have some issues with the on-screen button image...As I undersand it, I need a png image in the img/sys folder with a ratio of 1:2. But if I want the button to be the dimension of a tile, I need it to be 48x48, so 48x96? The image gets stretched, and on the screen you see only the upper half of the original picture (the bottom half after clicking on it).
I'm clearly doing things wrong, but it seems I can't solve it alone 🙁
It's not urgent, please answer when you have time. Have a nice day!
Spoiler: Screenshot
Immagine 2022-03-24 102208.png
Hello! Thanks for plugin! How i can unpause game via script command?
Hello! Thanks for plugin! How i can unpause game via script command?
Hi there!

You can use:
Eli.PauseGame.setState(false)
If you replace false with true, it will pause.

Dear Eli, hope you are well. Amazing plugin!
But I have some issues with the on-screen button image...As I undersand it, I need a png image in the img/sys folder with a ratio of 1:2. But if I want the button to be the dimension of a tile, I need it to be 48x48, so 48x96? The image gets stretched, and on the screen you see only the upper half of the original picture (the bottom half after clicking on it).
I'm clearly doing things wrong, but it seems I can't solve it alone 🙁
It's not urgent, please answer when you have time. Have a nice day!
Spoiler: Screenshot
Hi there!
Sorry, it seems I missed that. Don't know if I answered you in another place, but just in case someone else sees it, I will answer now. Maybe it can help someone else:

But yes, the image would need to be 48x96. Just like that one. It works fine here.

pauseButton.png

Original thread: https://forums.rpgmakerweb.com/threads/eli-pause-game-works-like-the-old-retro-games.127915/