如何将八向移动改成四项移动?
如何关闭八个方向移动的,只保留四个方向的移动?是arpg这里的8方向移动吧
在脚本SMain里,将243-263行删除,复制下面这个进去试试if(actor != null && mainUI != null && mainUI.phoneMove != null){
if(!actor.isDie && (mainUI.phoneMove.moveDir == 2 || IInput.isKeyPress(RC.Key.right) ) ){
if(!RV.GameData.actor.LMove) actor.moveRight();
}else if(!actor.isDie && (mainUI.phoneMove.moveDir == 1 || IInput.isKeyPress(RC.Key.left))){
if(!RV.GameData.actor.LMove) actor.moveLeft();
}else if(!actor.isDie && (mainUI.phoneMove.moveDir == 0 || IInput.isKeyPress(RC.Key.down)) ){
if(!RV.GameData.actor.LMove) actor.moveDown();
}else if(!actor.isDie && (mainUI.phoneMove.moveDir == 3 || IInput.isKeyPress(RC.Key.up)) ){
if(!RV.GameData.actor.LMove) actor.moveUp();
}
if( (!actor.isDie && !actor.atking()) && mainUI.phoneMove.moveType == 2 || IInput.isKeyPress(RC.Key.run) ){
actor.speedUp();
}
小八馍馍 发表于 2022-2-22 00:12
是arpg这里的8方向移动吧
在脚本SMain里,将243-263行删除,复制下面这个进去试试
之前已经改好了,谢谢{:3_48:}
页:
[1]