| 
 | 
 
 
发表于 2022-2-22 00:12:12
|
显示全部楼层
 
 
 
是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();
 
 -             }
 
 
  复制代码 
 
 
 |   
 
 
 
 |