Punk's Pause Script
Version: 1.1
Introduction
Pause script. The name of the script should be pretty self-explanatory, right? Unlike most pause scripts, this is the most customizable, in-depth pause script yet, packing in over 120 customizable options to suit your needs of making the perfect pause screen for your game. You'll get to customize just about everything about the pause script including but not limited to the music, graphics, etc. This script provides a pause screen and temporarily stops the game at the touch of a key.
Features
- Specify maps which disables pausing. Also specify a switch which disables pausing if turned on.
- Determine if pause screens stops the game's play time.
- Set pause/unpause buttons.
- Set pause/unpause sound effects. (File, Volume, Pitch)
- Completely enable/disable pausing in maps and/or default battles.
- Lower volume of BGM/BGS during pause, give your pause screen custom music or pause the music completely.
- Custom background color. Dim it, give it a different color, etc.
- Turn on/off a graphical “elementâ€. (BGIMG, Box, Animation, Text, Lower Layer Graphic, Upper Layer Graphic.)
- Set Z coordinates of each element.
- Adjust BGIMG: File, tone (R, G, B, S), opacity, blend type, scrolling, scaling, blur, radial blur.
- Adjust Animation: Animation ID, X&Y position, loop endlessly or set number, loop delay.
- Adjust Box: X&Y position, width&height, gradient color 1, gradient color 1 opacity, gradient color 2, gradient color 2 opacity, vertical or horizontal gradient, box blend type, box radial blur, box blur, box wave effect.
- Adjust Text: Custom “paused!†text, bold, italics, shadow, size, font, blur, mirror (flip horizontally), alignment, scaling, color, opacity, blend type, wave effect, custom positioning flag (it auto-centers by default), custom x&y positioning, custom alignment.
- Adjust LGFX: File, hue, tone, opacity, blend, x&y, scaling, blur, mirror.
- Adjust UGFX: File, hue, tone, opacity, blend, scaling, blur, mirror, custom positioning flag, custom x&y positioning.
Bug Notes
- Do not misplace any graphics, songs, background sound effects, music effects or sound effects that you may be using for this pause script. It will not “rescue†you.
- Do not use the same file for BGIMG, LGFX or UGFX. Some bug related to bitmaps will occur.
Screenshots
http://punk.ohsk.net/images/paused1.png[/img]
http://punk.ohsk.net/images/paused3.png[/img]
http://punk.ohsk.net/images/paused4.png[/img]
http://punk.ohsk.net/images/paused5.png[/img]
http://punk.ohsk.net/images/paused6.png[/img]
http://punk.ohsk.net/images/paused7.png[/img]
Don't mind the FPS here.
Don't mind the FPS here.
http://punk.ohsk.net/images/paused8.png[/img]
Demo
Version 1.1 (Recent!)
Version 1.0
Script
It's in the demo.
Instructions
- Copy Punk's Pause Scr. (Settings), Punk's Pause Scr. (Main) and Punk's Pause Scr. (Integrate) then paste them within the materials section of your project.
- Read the readme. Or you can read about each setting in my second post.
- Start adjusting the settings.
The script also needs a Paused Music Effect to be in your project's Audio/ME directory and some paused graphics in Graphics/Pictures.
Changelog
Version 1.1: Moved method 'pk_pause_hooks' to start before 'pk_pause_elements_start' and added 'pk_pause_hooks_after' after 'pk_pause_sounds'.
FAQ
Awaiting question.
Adding onto this script.
If scripters are using the recent version (1.1) and would like to add onto this script, they should alias the following four methods: pk_pause_hooks, pk_pause_hooks_after, pk_pause_hooks_update and pk_pause_hooks_dispose. They're all empty, just waiting there for you to alias them.
Compatibility
This alters Scene_Map and Scene_Battle update methods.
Credits and Thanks
DerVVulfman: He helped me out with a couple of things, whenever I had asked for support and such. Not only that, he also asked to have an animation playing in the script. I thought it was a cool idea so I added it.
dox: He helped me with auto-centering the graphics.
modern_algebra: He helped when it came down to playing animations in a script and looping them.
myownfriend: For convincing me to do a full-on script. (It was going to be an event system.)
Pim321: I was never able to figure out how to fetch a song that was playing in a map on RMVX. Pim321 helped out, thankfully.
Puppeto4: I really needed help on how to stop the play time. Pup mentioned something about Graphics.frame_count which I then thought to myself “Hmm... store the frame count in an instance variable then make said instance variable equal the Graphics.frame_count.â€
SilentBackStabber: SilentBackstabber gave me some neat ideas and helped out a bit in the making of this script. SBS had requested to have my pause script literally pause the music. I had somehow misread such a request and thought “Custom Pause Music? Totally adding to this script!†SBS really wanted my script to be able to literally pause the music and I just couldn't figure out a scripted solution to it. So then I thought of Music Effects and how they have a way of stalling the BGM. I had an idea in which I could make the ME play repeatedly therefore efficiently stalling the BGM for quite some time. I then needed help from someone to make me a 1-second sound effect that was silent. SBS made the music effect and sent me the file.
Shade: During chat in another site, Shade said "RPGs don't pause except in battles". By saying that, he had given me yet another idea for a feature to add in the script. Allow pausing in maps and allow pausing in battles were added to my script.
Arbiter: I think it was his pause script which made me want to do mine.
NO: I'd like to say that my script (regarding some features) were inspired by NO and his/her pause script.
Enelvon and Aërendyll in a way, helped out with Version 1.1.
Author's Notes
This script began as some experiment with evented script call commands to see if I could define scenes and windows using Script Calls. It surprisingly worked. Then I thought about making an event-scripted pause system. Never has there been a pause system done through events, so I thought I'd give it a shot. Right when I thought I was done with what would've been my event script, I had a few ideas and wanted to add them into the script. Before I knew it, it was growing to be just a little too much.
Then Myownfriend then convinced me to turn it into a full-on script. Afterwards, I began thinking of idea after idea, adding feature after feature. And it was all in the effort to give developers the ability to customize and personalize their pause screens. It was insane, man. I then took requests or thought of ideas based on what people have said or what pause scripts I've seen in the past. Eventually this script went over 100 in customization options, which I can understand is pretty overkill for those who just wanted a pause script.
Luckily, game developers do not have to go through adjusting every single setting in my script. They can simply set any or all “flags†to false.