战斗加速 怎么实现。
rpgmakermz吧
全部回复
仅看楼主
level 4
没有没大佬 讲讲方法?
2021年07月05日 14点07分 1
level 9
/** 开始移动*(x坐标, y坐标,持续时间)*/
Sprite_Battler.prototype.startMove = function(x, y, duration) {
if (this._targetOffsetX !== x || this._targetOffsetY !== y) {
this._targetOffsetX = x;
this._targetOffsetY = y;
if (duration>0) duration=2;
//new(数值越小越快,最小值1) #必须存在前缀if,否则卡死
this._movementDuration = duration;
if (duration === 0) {
this._offsetX = x;
this._offsetY = y;
}
}
};
2021年07月06日 02点07分 2
谢谢大佬
2021年07月06日 07点07分
这是啥啊
2023年05月22日 17点05分
@棉花园宝宝🌚 大概是rmmz版本的代码,原理是减少玩家走图移动的帧率,仅对sv走图战斗模式有效
2023年05月22日 22点05分
level 4
谢谢大佬
2021年07月06日 05点07分 3
1