//============================================================================= // WaitForFade.js // ---------------------------------------------------------------------------- // Copyright (c) 2016 Triacontane // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // ---------------------------------------------------------------------------- // Version // 1.0.0 2016/10/17 初版 // ---------------------------------------------------------------------------- // [Blog] : http://triacontane.blogspot.jp/ // [Twitter]: https://twitter.com/triacontane/ // [GitHub] : https://github.com/triacontane/ //============================================================================= /*: @url https://triacontane.blogspot.com/ @plugindesc Prohibit movement during fade plugin @author Triacontane @license MIT License @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/triacontane-MV-plugins ). Original plugin by Triacontane. Please check the latest official version at: https://triacontane.blogspot.com ----- During the fade-in/fade-out when changing locations, movement is prohibited even if an event is not running. This plugin does not have any plugin commands. Terms of Use: You may modify and redistribute this plugin without permission from the author, and there are no restrictions on its use (commercial, 18+, etc.). This plugin is now yours. */ /*:ja @plugindesc フェード中移動禁止プラグイン @author トリアコンタン @help 場所移動の際のフェードイン・フェードアウト中は イベント実行中でなくても移動を禁止します。 このプラグインにはプラグインコマンドはありません。 利用規約: 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) についても制限はありません。 このプラグインはもうあなたのものです。 */ (function () { 'use strict'; //============================================================================= // SceneManager // シーンクラスのビジー状態を返します。 //============================================================================= SceneManager.isBusy = function () { return this._scene.isBusy(); }; //============================================================================= // Game_Player // シーンクラスのビジー状態のときに移動を禁止します。 //============================================================================= var _Game_Player_canMove = Game_Player.prototype.canMove; Game_Player.prototype.canMove = function () { return _Game_Player_canMove.apply(this, arguments) && !SceneManager.isBusy(); }; })();