|
今天群内有小伙伴问到这个问题,就去请教了moon小姐姐,现在把具体做法发在这里,大家需要的自取哦
1,在脚本SMain处,找到下面位置,添加下面脚本如下图,
var doubleMove = -1;
var moveWaitMax = 10;
var moveWaitNow = 0;
2,在SMain中找到下面图中选中的部分,删除,复制下面这些脚本进去,
RV.GameData.actor.updateBuff();
if(actor != null && mainUI != null && mainUI.phoneMove != null){
if(doubleMove != -1 && moveWaitNow > 0 && (!IInput.isKeyPress(RC.Key.right) && !IInput.isKeyPress(RC.Key.left) ) ){
moveWaitNow -= 1;
if(moveWaitNow <= 0) doubleMove = -1;
}
if(!actor.isDie && (mainUI.phoneMove.moveDir == 2 || IInput.isKeyPress(RC.Key.right) ) ){
if(!RV.GameData.actor.LMove) {
actor.moveRight();
if(moveWaitNow > 0 && moveWaitNow != moveWaitMax && doubleMove == 1){
doubleMove = 3;
}else if(moveWaitNow <= 0){
doubleMove = 1;
moveWaitNow = moveWaitMax;
}
}
}
if(!actor.isDie && (mainUI.phoneMove.moveDir == 1 || IInput.isKeyPress(RC.Key.left))){
if(!RV.GameData.actor.LMove){
actor.moveLeft();
if(moveWaitNow > 0 && moveWaitNow != moveWaitMax && doubleMove == 2){
doubleMove = 3;
}else if(moveWaitNow <= 0){
doubleMove = 2;
moveWaitNow = moveWaitMax;
}
}
}
if((!actor.isDie && !actor.atking()) && (mainUI.phoneMove.moveType == 2 || doubleMove == 3)){
actor.speedUp();
}
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|