RPG Maker VX Ace
Fade Events
Introduction
This script will allow you to Fade Events in and out gradually. The Default Options allow you to change an events opacity, but does not allow you to make a gradual transition. Thus, if you wanted to have an Event that "dissolved", "teleported" or "flickered", you would have to use quite a few Change Opacity commands, then use Wait after each and every Change Opacity command. Sorry to say, but I think that is a pain in the behind. This script offers an easier way to accomplish that same effect by using one line of script: fade_event(new_opacity, duration). Short Fades can be accomplished without this script by adjusting the opacity every frame for a few frames, but if you need rather long Fades that take a lot of frames, then this is the script for you!
Features
- Saves Time by changing Opacity for you Automagically
- Super Duper easy to use
- Only ONE Command to Remember
- No Configuration Necessary
- High Degree of Compatability
- Reported to me to be compatible with VX and VXA as well
The Code
License Terms
Attribution 3.0 Unported - You must attribute the work in the manner specified by the author or licensor. Commerical use allowed.
Instructions
Just put the code above main somewhere…
Credits & Thanks
Thanks to everyone who has been helping me improve my scripting skills!
Comments (4)
Leave a Reply
You must be logged in to post a comment.
Guest
This script is very helpful, thanks so much for making it!
Guest
Idk why, but somehow it doesnt do anything in my case (vx ace). im probs just doing sth wrong, because its my first time using a script. can someone help?
here what I did: i copied the script into a "materials" slot in my script manager and named it "fade_event". Then I proceeded to use it as in the description as movement command on the event (set to 255, 100) the event i used it on was on player level and triggered by character touch (no spawn conditions set).
was there anything wrong so far?
black mage
Try (0,100).
(255,100) are meant to make the event fade from its initial state into point 255 of transparency after 100 frames. However, since the initial state for the most event is already 255, no changes will happen at all.
Guest
It's giving me the error as follows:
Script 'fade' line 78: NoMethodError occured.
Undefined method >= for nil:NilClass