じ☆ve冰风 发表于 6 天前

Simple Event Fade

SimpleEventFade.js


Download


SimpleEventFade.js (v1.1)


Introduction


This plugin adds the ability to make events fade in or out over a set duration of frames much more easily than having to repeatedly set the opacity over and over again. It should also be much smoother than doing that manually.


How to Use


Go to the Event you want to make fade in or out and find the location where you want to make the event take this action. Create a move route, click script in the bottom right of that window and add one of the following lines depending on what you want to do:


this.fadeIn(x)


this.fadeOut(x)


this.fadeTo(newOpac,x)


x should be the duration in frames that you want the fade to last. There is also a default value in the plugin's parameters so you could even enter something like this.fadeOut() and that'd work just as well. In the case of using this.fadeTo, you MUST set an opacity to fade to. For instance, saying this.fadeTo(150,60) would fade the event or player to 150 opacity from their current opacity over 60 frames. You could also just call this.fadeTo(150) and it'd use your default duration set in the plugin parameters.


Screenshot





Notes


This plugin should not require any other plugins, nor should it have any compatibility issues. It is free for use commercially and non-commercially so long as I am credited.


Also, I finished this plugin before I saw that Galv had already created a plugin with this functionality and more. If you need more functionality for your Move Routes I recommend checking it out: Galv's Move Route Extras


Known Issues


None at the moment.


本贴来自国际rpgmaker官方论坛作者:kuoushi处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/simple-event-fade.49435/
页: [1]
查看完整版本: Simple Event Fade