自己需要,稍作改动,想到可能也会有相同需要的人,就分享上来了,楼主大大不要介意哟~~~~~~ 主要是我不会写代码,就只能拿大大们的现成代码动刀
QQ截图20160216123705.jpg (252.98 KB, 下载次数: 28)
//============================================================================= // MOG_TitleSplashScreen.js //============================================================================= /*: * @plugindesc (v1.0) Adiciona logos antes da tela de título. * @author Moghunter * * @param Splash Frames * @desc Quantidade de logos. * (Default = 1) * @default 1 * * @param Slash Duration * @desc Duração do logo. * (Default = 60) * @default 60 * * @param Splash Fade Duration * @desc Velocidade do fade. * (Default = 2) * @default 2 * * @param Full Screen Mode * @desc Ativar o modo em tela cheia. (true / false) * (Default = false) * @default false * * @help * ============================================================================= * +++ MOG - Title Splash Screen (v1.0) +++ * By Moghunter * [url]https://atelierrgss.wordpress.com/[/url] * ============================================================================= * Adiciona multiplos logos antes da tela de título. * Serâo necessários os arquivos. * * Splash_INDEX.png * * no lugar da INDEX coloque a numeração da imagem. * * Splash_0.png * Splash_1.png * Splash_2.png * ... * * Coloque as imagens na pasta: * * img/titles2/ */ //============================================================================= // ** PLUGIN PARAMETERS //============================================================================= var Imported = Imported || {}; Imported.MOG_TitleSplashScreen = true; var Moghunter = Moghunter || {}; Moghunter.parameters = PluginManager.parameters('MOG_TitleSplashScreen'); Moghunter.title_splash_number = Number(Moghunter.parameters['Splash Frames'] || 1); Moghunter.title_splash_duration = Number(Moghunter.parameters['Slash Duration'] || 60); Moghunter.title_splash_fade_speed = Number(Moghunter.parameters['Splash Fade Duration'] || 2); Moghunter.title_full_screen_mode = (Moghunter.parameters['Full Screen Mode'] || false); //============================================================================= // ** Scene Boot //============================================================================= //============================== // * Start //============================== var _alias_mog_title_splash_screen_boot_start = Scene_Boot.prototype.start Scene_Boot.prototype.start = function() { if (Moghunter.title_full_screen_mode == "true") {Graphics._requestFullScreen()}; if (!DataManager.isBattleTest() && !DataManager.isEventTest()) { SceneManager.goto(Scene_Splash_Screen); return } _alias_mog_title_splash_screen_boot_start.call(this); }; //============================================================================= // ** Scene Splash Screen //============================================================================= function Scene_Splash_Screen() { this.initialize.apply(this, arguments); } Scene_Splash_Screen.prototype = Object.create(Scene_Base.prototype); Scene_Splash_Screen.prototype.constructor = Scene_Splash_Screen; //============================== // * Initialize //============================== Scene_Splash_Screen.prototype.initialize = function() { Scene_Base.prototype.initialize.call(this); }; //============================== // * Create //============================== Scene_Splash_Screen.prototype.create = function() { Scene_Base.prototype.create.call(this); this._splash_data = [0,0, Math.max(Moghunter.title_splash_duration,1),Math.max(Moghunter.title_splash_fade_speed, 1)]; this._splash_img = []; this._splash_sprite = new Sprite(); this._splash_sprite.anchor.x = 0.5; this._splash_sprite.anchor.y = 0.5; this._splash_sprite.x = Graphics.boxWidth / 2; this._splash_sprite.y = Graphics.boxHeight / 2; this.addChild(this._splash_sprite); for (i = 0; i < Moghunter.title_splash_number; i++){ this._splash_img.push(ImageManager.loadTitle2("Splash_" + i)); }; this.refresh_splash_screen() }; //============================== // * Refresh Splash Screen //============================== Scene_Splash_Screen.prototype.refresh_splash_screen = function() { if (this._splash_data[0] >= this._splash_img.length) { AudioManager.stopMe(); DataManager.setupNewGame(); SceneManager.goto(Scene_Title); Window_TitleCommand.initCommandPosition(); return; }; this._splash_sprite.bitmap = this._splash_img[this._splash_data[0]]; this._splash_sprite.opacity = 0; this._splash_data[0] += 1; this._splash_data[1] = this._splash_data[2]; }; //============================== // * Start //============================== Scene_Splash_Screen.prototype.start = function() { Scene_Base.prototype.start.call(this); this.startFadeIn(this.fadeSpeed(), false); }; //============================== // * Update //============================== Scene_Splash_Screen.prototype.update = function() { Scene_Base.prototype.update.call(this); if (this._splash_data[1] <= 0) { this._splash_sprite.opacity -= this._splash_data[3]; if (Input.isTriggered("ok") || TouchInput.isTriggered()) {this._splash_data[0] = this._splash_img.length}; if (this._splash_sprite.opacity <= 0) {this.refresh_splash_screen()}; } else { this._splash_sprite.opacity += this._splash_data[3]; if ((Input.isTriggered("ok") || TouchInput.isTriggered()) && this._splash_sprite.opacity > 60) { this._splash_data[1] = 0; this._splash_data[0] = this._splash_img.length}; if (this._splash_sprite.opacity >= 255) {this._splash_data[1] -= 1}; }; };
QQ图片20160520140601.png (203.94 KB, 下载次数: 19)
everlose 发表于 2016-8-25 21:59
装了这个 玩家需要重新开始游戏么?
salvareless 发表于 2016-3-24 11:40
请教一个奇葩冲突,我使用了MOG的五个跟标题界面和开头动画有关的插件,结果发现报错了,错误提示是“Canno ...
Scene_Base.prototype.XY_Toast_old_updateChildren = Scene_Base.prototype.updateChildren; //XY_Toast_key=false; Scene_Base.prototype.updateChildren = function() { this.XY_Toast_old_updateChildren(); //if(XY_Toast_key){ $gameTemp.updatetoast(); //}; };
Game_Temp.prototype.XY_Toast_old_initialize = Game_Temp.prototype.initialize; Game_Temp.prototype.initialize = function() { this.XY_Toast_old_initialize(); this._toastlist = []; }; Game_Temp.prototype.toast = function(text, color) { XY_Toast_key=true; this.alltoastmove(); this._toastlist.push(new XY_Toast(text, color)); }; Game_Temp.prototype.alltoastmove = function() { for(var i = 0;i < this._toastlist.length;i++){ this._toastlist[i].up(); } }; Game_Temp.prototype.updatetoast = function() { for(var i = 0;i < this._toastlist.length;i++){ this._toastlist[i].update(); if(this._toastlist[i].finish()){ this._toastlist.splice(i,1); i--; } } };
Scene_Base.prototype.XY_Toast_old_updateChildren = Scene_Base.prototype.updateChildren; XY_Toast_key=false; Scene_Base.prototype.updateChildren = function() { this.XY_Toast_old_updateChildren(); if(XY_Toast_key){ $gameTemp.updatetoast();
Game_Temp.prototype.toast = function(text, color) { XY_Toast_key=true; this.alltoastmove(); this._toastlist.push(new XY_Toast(text, color)); };
9.png (235.77 KB, 下载次数: 20)
Makeman 发表于 2016-1-27 18:56
任务单只能一直挂在画面上吗?怎么不让他显示出来
TIM截图20171014190506.png (106.85 KB, 下载次数: 26)
qq1071203524 发表于 2016-12-4 18:18
新人求解!!!
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |