技能组件修改,由skillcom统一负责动画,只负责动画
This commit is contained in:
@@ -28,7 +28,7 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
|
||||
if (!shouldStop) {
|
||||
if(view.is_stop||view.is_dead) return //停止移动或者死亡不移动
|
||||
// 计算移动量
|
||||
const delta = view.speed * this.dt * move.direction;
|
||||
const delta = (view.speed/3) * this.dt * move.direction;
|
||||
const newX = view.node.position.x + delta;
|
||||
|
||||
view.status_change("move")
|
||||
|
||||
Reference in New Issue
Block a user