Platform Builder Forums
Help and Support => Working with Platform Builder => Topic started by: Wizard Indie Games 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?
-
Sorry to bump, but does anyone know?
-
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.
-
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.
-
You could also set the HP to 2 then just change the sprite.
-
Thanks. I'll try.