Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
怎样做到通过鼠标点击控制人物水平移动呢
核心点在这,让角色移动的目标位置的y坐标是它自己的y坐标,目标位置的x坐标则取鼠标点击时的x坐标