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).
如标题{我是凑字数凑字数}
直接触屏开始时设置摇杆的位置到触屏位置就行了,但是不会马上进入操作状态。我觉得你要的是那种会马上进入操作状态的摇杆,这种只能自己写一个摇杆功能,难度就上来了 。大致的思路是触屏开始时的点为摇杆中心点,然后根据当前触屏坐标和摇杆中心点的角度来模拟控制人物的移动方向