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).
如何做僵尸,当玩家接近僵尸的时候僵尸会追玩家
给僵尸添加视线能力和移动追踪(或者其他移动能力),当玩家再僵尸视线以内时,僵尸启用移动能力(或修改移动速度),并修改移动角度为angle(僵尸.x,僵尸.y,玩家.x,玩家.y),使其移动角度是朝着主角的,当然视能力的动作,也可能不需要设置移动角度,而是填玩家的坐标就行了