Raise-Your-Wand/Scripts/healthBar.gd
nc5432 940fed1170 Background and UI
- 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
2024-05-07 21:43:09 -04:00

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