Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
ysE9Vml.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 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.

How to use

• You can choose an image from your system folder. Make sure it is the size of your game resolution. You can also not use any image.

• Check out this site to find your desired javascript keycode:
https://keycode.info/

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: 48
Height: 96

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

You can check if the button is pressed using "pause".
Input.isTriggered("pause")
Input.isPressed("pause")
etc...

Terms of Use

https://www.hakuenstudio.com/rpg-maker/terms-of-use


DOWNLOAD
EliMZ_PauseGame.js
Update Log
Version 2.2.0 - 05/03/2021
- Added support for the gamepad.
- Requires Eli Book 3.3.0 now.
Version 2.1.1 - 04/25/2021
- Added a dropdown list to choose the keyboard key to pause the game.
Version 2.1.0 - 12/25/2020
- Added a common event to play when leaving the pause scene.
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
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 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.0.0 - 09/26/2020
- Plugin release!
 
Last edited:

Tonedawg181

Tonedawg Gaming
Veteran
Joined
Oct 21, 2016
Messages
67
Reaction score
22
First Language
English
Primarily Uses
RMMV
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?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
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?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
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.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
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.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.1.0 - 12/25/2020
- Added a common event to play when leaving the pause scene.
 

imcatman

Villager
Member
Joined
Apr 12, 2019
Messages
27
Reaction score
7
First Language
German
Primarily Uses
RMMV
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?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
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.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,042
Reaction score
1,519
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.2.0 - 05/03/2021
- Added support for the gamepad.
- Requires Eli Book 3.3.0 now.
 

Vincentus

Warper
Member
Joined
Jun 16, 2021
Messages
4
Reaction score
2
First Language
French
Primarily Uses
RMMZ
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 !
 

Latest Threads

Latest Posts

Latest Profile Posts


Made a new battleback this week! How's it look?
"This is the real secret to life - To be completely engaged with what you are doing in the here and now. And instead of calling it work, realize it is play."
Me: "I don't to use other engines because I'd have to do a lot of coding."

Also my desktop right now....
mycurrentdesktop.jpg

...I literally spend more time using VS Code than MZ. :kaoswt:
actually, are there any JRPG type games (I guess turn based, so not ARPGs like say, Vagrant Story) where you have only one party member for the majority of the game? (I wonder if I'm forgetting something obvious.)
*sigh* This one turned out really well... except for the left arm pose...
fPRzKSp.jpg

Yes I purposely cutout the arm cause from the pic

Forum statistics

Threads
113,801
Messages
1,077,584
Members
147,856
Latest member
trz21
Top