Enemy Death Animation

RondoRocketRondoRocket Member Posts: 411
edited November -1 in Working with GS (Mac)
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!

Comments

  • RondoRocketRondoRocket Member Posts: 411
    Hey TSB,

    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?
  • RondoRocketRondoRocket Member Posts: 411
    It works now... I needed an attribute that set the enemies speed to 0 and have the death animation look for it.
Sign In or Register to comment.