How do I make my enemy corpses not consume bullets?

  • The way I have it set is that when the bullets collide with the enemy, it removes 1 health from the enemy, and destroys the bullet. Once the health is 0 for the enemy, it plays the death animation and destroys the object. But when the enemy is playing the death animation, it still destroys the bullets. How can I fix this without making it so when the death animation plays the bullets do not destroy on that object instance?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Add a condition to the original event that basically says if the bullet collides and the dying animation is not playing subtract 1 health and destroy bullet.

    So you'd basically want this kind of thing:

    You can right click on a condition and say invert to mean "not doing this"

    Hope that helps

  • or use health > 0 condition

    don't forget to use For Each: Enemy and For Each: Bullet

  • Add a condition to the original event that basically says if the bullet collides and the dying animation is not playing subtract 1 health and destroy bullet.

    So you'd basically want this kind of thing:

    You can right click on a condition and say invert to mean "not doing this"

    Hope that helps

    Thank you so much for this! I really should've thought about animation conditions!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)