「YEP_X_AftermathLevelUp」で,レベルアップ時に音楽を流す
Posted: 2017年9月12日(火) 06:56
表題の通りです。
レベルが上ったことがわかりやすいよう,レベルアップ詳細表示の際に音を加えたいのですが,何か方法はないでしょうか?
レベルが上ったことがわかりやすいよう,レベルアップ詳細表示の際に音を加えたいのですが,何か方法はないでしょうか?
ツクール素材を公開・リクエストしたり、質問ができるフォーラムです。
https://tm.yumineko.com/
コード: 全て選択
Scene_Battle.prototype.setupNextAftermathLevelUpActor = function() {
AudioManager.playSe({"name":"Flash2","volume":100,"pitch":100,"pan":0});//←追加
this._levelUpActor = BattleManager.aftermathLeveledActors().shift();
var fmt = Yanfly.Param.ALUTitleFmt;
var text = fmt.format(this._levelUpActor.name(), this._levelUpActor.level);
this._victoryTitleWindow.refresh(text);
if (!this._victoryLevelWindow) {
this._victoryLevelWindow = new Window_VictoryLevelUp(this._levelUpActor);
this.addWindow(this._victoryLevelWindow);
this._victoryLevelWindow.open();
this._victorySkillWindow = new Window_VictorySkills(this._levelUpActor);
this.addChild(this._victorySkillWindow);
this._victorySkillWindow.open();
} else {
this._victoryLevelWindow.setActor(this._levelUpActor);
this._victorySkillWindow.setActor(this._levelUpActor);
}
};