Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Change Fade Time
Pacman
post Feb 2 2012, 02:02 AM
Post #1


Level 3
Group Icon

Group: Member
Posts: 34
Type: Scripter
RM Skill: Advanced




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


__________________________
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
amerk
post Feb 2 2012, 07:43 AM
Post #2


Level 56
Group Icon

Group: Global Mod
Posts: 1,784
Type: None
RM Skill: Undisclosed
Rev Points: 15




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.


__________________________
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 07:51 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker