Project1
标题:
请问怎么修改小船的移动速度?
[打印本页]
作者:
nhycs01
时间:
2023-7-13 11:20
标题:
请问怎么修改小船的移动速度?
我想让小船的移动速度和大船一样,都是2倍移速,请问该怎么改呢?
作者:
RyanYe
时间:
2023-7-13 14:45
Game_Vehicle.prototype.getOn = function() {
$gameTemp.reserveCommonEvent(42);//Edited by Ryan Ye, CE:GetOn_Vehicle
this._driving = true;
this.setWalkAnime(true);
this.setStepAnime(true);
$gameSystem.saveWalkingBgm();
//this.playBgm(); //This line is originally located in rpg_objects.js
};
Game_Vehicle.prototype.getOff = function() {
this._driving = false;
this.setWalkAnime(false);
this.setStepAnime(false);
this.resetDirection();
$gameTemp.reserveCommonEvent(43);//Edited by Ryan Ye, CE:GetOff_Vehicle
//$gameSystem.replayWalkingBgm(); //originally located in rpg_objects.js
};
复制代码
公共事件42是把角色改速度到2倍速
公共事件43是恢复角色速度
楼主试一试?(我现在没法给楼主做测试,因此不保证代码的正确性)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1