The animation run wont play after frame 0, when i tried replacing it with other animations, it worked perfectly, i replaced imgs but din work. I am trying to play it when character moves, it is moving but animation frame is stuck on 0. Help?
Develop games in your browser. Powerful, performant & highly capable.
Your screenshot doesn't show any actions which can affect animations.
Comparing "Amayus X<Enemy1.X" may not work correctly with multiple enemies, because only the first enemy instance will be checked. You need to add For Each loop:
Enemy1 has LOS to Amayus System For Each Enemy1 Amayus X<Enemy1.X
Also, DistanceBetween variable will store the distance to the last enemy only. You might need to use an instance variable instead.