NetEase/lordofpomelo

why call "sprite.movePath" 2 times

Opened this issue · 0 comments

in the file"clientManager.js"
function "move" has the codes below:

 sprite.movePath(paths.path, speed);//1
  pomelo.request('area.playerHandler.move', {path: paths.path}, function(result) {
    if(result.code === Message.ERR){
      console.warn('curPlayer move error!');
      sprite.translateTo(paths.path[0].x, paths.path[0].y);
    }
  });
  sprite.movePath(paths.path);//2, maybe wrong