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).
平台跳跃游戏我设置的事件是把怪物添加移动追踪和视线当怪物发现敌人后,追踪敌人了,但是动画的方向没有改变比如怪物动画方向是朝向右边,但是我在怪物左边,怪物却用动画右边来追踪我。
比较角色和怪物的x坐标,如果角色的x坐标大于怪物的x坐标,设置怪物的翻转为水平不翻转,否则设置为水平翻转