change actor when killing the enemy (resolved)

Great, and how would I make the squashed goomba disappear after a few seconds?