
- Implemented firebolt animation - Started on icy wind animation - Added animation to health bars - Improved the animation system more - Cleaned up some code
18 lines
369 B
GDScript
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")
|