This commit is contained in:
Victor Turgeon
2023-10-10 19:38:31 -04:00
2 changed files with 47 additions and 27 deletions

View File

@@ -103,6 +103,7 @@ func die():
animatedSprite.play("death")
animatedSprite.disconnect("animation_finished", endAttack)
animatedSprite.connect("animation_finished", fadeOut)
enemy.remove_foe(self)
func fadeOut():
var tween = get_tree().create_tween()