Help - Search - Members - Calendar
Full Version: Change Fade Time
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS3
Pacman
Change Fade Time

Version: 1.0
Author: Pacman
Release Date: 31/01/2012


Introduction
This script will alter the number of frames it takes to fade the screen in and out (with the default commands). This is done with a simple script call. You can also set an individual fadein or fadeout to have a different number of frames.

Features
You can change the amount of time it takes for the screen to fade in and out.
You can also call a fadein or fadeout with a specific number of frames.

Script
Get it at Pastebin.

Customization
Set INITIAL_FRAMES to the number of frames it takes to fade in and out from the beginning of the game at line 22.
Use these script calls to do the functions described next to them:
change_fade_time(n) - Change the number of frames it takes to fade in and out to n.
fadein(n) - Fade the screen in with n frames.
fadeout(n) - Fade the screen out with n frames.
Keeping in mind that 60 frames = 1 second.

Compatibility
I overwrote command_221 and command_222 of Game_Interpreter. If any other scripts refer to or overwrite these methods, there could be an incompatibility. Please report an incompatibility if you find one.

Screenshot
N/A

DEMO
N/A

Installation
Paste above main, follow instructions in script header.

FAQ
None as of yet.

Terms and Conditions


Credits
- Pacman
Kread-EX
Nice. You can use screen tone to fade in or out like you want, but this can cause problems with time/weather systems, amongst other things. Good idea you got there.
amerk
Excellent, this will definitely come in hand. As Kread stated, it can be done manually now, but can be such a pain in the butt sometimes, so having it automatically set to a specific time using the Fade Out/In commands will help.
kayden997
It literally a simple thing but handy.
Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.