Basically, I need to destroy obj_enemy when it's on the same Y coordinates as obj_sword and when hit animation happens. But it's not working for some reason.
Develop games in your browser. Powerful, performant & highly capable.
The issue is probably that they are never equal? It's difficult to get them on an exact Y co-ord together as an animation finishes.