nc5432 69008d0046 More animations
- Implemented firebolt animation
- Started on icy wind animation
- Added animation to health bars
- Improved the animation system more
- Cleaned up some code
2024-05-14 21:40:18 -04:00

18 lines
369 B
GDScript

extends "res://Scripts/animationBase.gd"
@onready var texture: AnimatedSprite2D = $AnimatedSprite2D
var exploding: bool = false
func animFinished(_s: String):
if (!exploding && index == finalIndex):
animationFinished.emit(spell)
die()
elif (exploding):
queue_free()
func die() -> void:
exploding = true
animationPlayer.stop()
animationPlayer.play("die")