
- Got new backgrounds - Added health bars - Added in enemy wizard using the wizard spellbook rather than the old spellbook - Made the cast indicator smaller since it seemed a bit large - Started working on enemy AI systems - Fixed rock throw animation
9 lines
208 B
GDScript
9 lines
208 B
GDScript
class_name HealthBar extends Control
|
|
|
|
@onready var bar: ColorRect = $ColorRect2
|
|
@export var maxHealth: float = 1
|
|
|
|
func healthChanged(health):
|
|
print("Health Changed")
|
|
bar.size.y = (health / maxHealth) * 100
|