Enemy Death Animation
RondoRocket
Member Posts: 411
For some reason I can't get the death animation for the enemies in my sidescroller to play correctly. When their health reaches 0 the death animation either plays over top of the walking animation or in another setup I tried the animation just doesn't play at all.
Any help is appreciated!
Any help is appreciated!
Twitter:rondorocket
Web: rondorocket.com
Comments
Now I'm really confused. I think I have the Rules setup mostly correct. I'm using LinearVelocityX to determine which animation the enemy should use for left and right and I've placed the death animation in Otherwise with a Rule that says if Health = 0 play this animation. But now when the enemies health reaches 0 the enemy keeps moving towards me and the death animation doesn't play until he is almost totally over top of me.
I don't have any Overlap rules or anything set up, it almost appears like the death animation won't play until the enemy is told to update it's position, which I've told it to do by using Magnitude and setting a distance of 15 pixels to myself.
So I guess my issue is how do I tell the enemy to update itself to check it's health status in order to play an animation or what attribute do I need to use if not health in order to run the animation?
Twitter:rondorocket
Web: rondorocket.com
Twitter:rondorocket
Web: rondorocket.com