Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> 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
   
Kread-EX
post Feb 2 2012, 03:20 AM
Post #2


(=___=)/
Group Icon

Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed




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.


__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.

My blog.

Click here for my e-peen


Go to the top of the page
 
+Quote Post
   
amerk
post Feb 2 2012, 07:43 AM
Post #3


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
   
kayden997
post Feb 2 2012, 04:44 PM
Post #4


>Glitched<
Group Icon

Group: Local Mod
Posts: 1,164
Type: Event Designer
RM Skill: Masterful
Rev Points: 30




It literally a simple thing but handy.
Thanks


__________________________


Runescape with Dyedfire




Go to the top of the page
 
+Quote Post
   

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 - 09:47 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker