Author Topic: Delaying Death  (Read 1366 times)

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Delaying Death
« on: July 19, 2020, 07:04:43 PM »
Is there a way to delay the death of an enemy long enough to play a death animation or (custom) explosion animation?
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Re: Delaying Death
« Reply #1 on: July 24, 2020, 04:03:48 PM »
Sorry to bump, but does anyone know?
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Delaying Death
« Reply #2 on: July 24, 2020, 04:25:52 PM »
Whoops. I meant to answer this, but I didn't have time, and then I forgot all about this!

I've got death animations in ASM. In your enemy's destroyed Command Prompt, just tell it to change the enemy to another enemy. Make the other enemy invincible, (so that it can't be harmed/jumped on etc) and give it the death animation. In the death commands for the enemy itself, tell it to delay destroying the "death animation enemy" for as long as the death animation is. It'll take a little bit figuring how long that time period is, but it's worth it in the end.

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Re: Delaying Death
« Reply #3 on: July 24, 2020, 05:48:59 PM »
OK.Thanks very much!

A suggestion for a future update would be to add a feature to delay the death so we don't have to change the object. But for now this works great.
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: Delaying Death
« Reply #4 on: July 24, 2020, 06:01:14 PM »
You could also set the HP to 2 then just change the sprite.

Wizard Indie Games

  • Level 7: Tilbub
  • *
  • Posts: 145
    • View Profile
Re: Delaying Death
« Reply #5 on: July 28, 2020, 12:53:04 PM »
Thanks. I'll try.
Developer of:

AI Anomaly
Dickie A Cumming
Someone Cloned The President
Freedom! Do or Die
Pension Day
Red Mist: Rivers of Blood

Available on Steam