#Death Effect [HELP]

5 messages · Page 1 of 1 (latest)

clever shard
#

Hello, I just wanted to ask how you could make an effect, and that effect would be when something dies (in my case, an enemy) then it image_index = anotherSprite; how would I be able to do this, and then when the animation of that sprite then finishes then that sprite then gets instance_destroy();.
Thanks!

soft pewter
#
  1. We use sprite_index to change the sprite, not image_index.
  2. A Death state would work well for this. Died - go to the Death state. Animation ends - destroy the instance.
clever shard
#

how would I make a death state?

soft pewter
#

By making a state machine.