This plugin lets you change the default Fade out/fade in speed when transferring the player, and when the fade duration was not set in the event.
Small quality of life plugin for the player, although if you set it fast (default for plugin) and the game hasn't loaded the required assets during the transfer, the player may see a loading screen.
JavaScript:
//============================================================================= // Fade_out_fade_in_speed.js //============================================================================= /*: * @Fade_out_fade_in_speed * @plugindesc Change Fade out/fade in speed * @version 1.0 * @author Zero_G * @filename Fade_out_fade_in_speed.js * @help ------------------------------------------------------------------------------- == Description == This plugin lets you change the default Fade out/fade in speed when transferring the player. == Terms of Use == - Free for use in non-commercial projects with credits - Free for use in commercial projects - Please provide credits to Zero_G == Usage == Just add the plugin. ------------------------------------------------------------------------------- @param Fade out speed @desc Default fade out speed (Default game speed is 30) @default 10 @param Fade in speed @desc Default fade in speed (Default game speed is 30) @default 10 ------------------------------------------------------------------------------- */ var Imported = Imported || {}; var ZERO = ZERO || {}; Imported.ZERO_FadeOutFedeInSpeed = 1; ZERO.FadeOutFedeInSpeed = ZERO.FadeOutFedeInSpeed || {}; (function ($) { $.params = PluginManager.parameters('Fade_out_fade_in_speed'); $.fadeOutSpeed = $.params['Fade out speed'].trim(); $.fadeInSpeed = $.params['Fade in speed'].trim(); Scene_Base.prototype.startFadeOut = function (duration, white) { this.createFadeSprite(white); this._fadeSign = -1; this._fadeDuration = duration || $.fadeOutSpeed; this._fadeSprite.opacity = 0; }; Scene_Base.prototype.startFadeIn = function (duration, white) { this.createFadeSprite(white); this._fadeSign = 1; this._fadeDuration = duration || $.fadeInSpeed; this._fadeSprite.opacity = 255; }; Scene_Map.prototype.fadeOutForTransfer = function () { var fadeType = $gamePlayer.fadeType(); switch (fadeType) { case 0: case 1: this.startFadeOut($.fadeOutSpeed, fadeType === 1); break; } }; Scene_Map.prototype.fadeInForTransfer = function () { var fadeType = $gamePlayer.fadeType(); switch (fadeType) { case 0: case 1: this.startFadeIn($.fadeInSpeed, fadeType === 1); break; } }; })(ZERO.FadeOutFedeInSpeed); 复制代码
本贴来自国际rpgmaker官方论坛作者:Zero_G处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/fade-out-fade-in-speed.127218/