Raise-Your-Wand/Scripts/healthBar.gd
nc5432 3c2d81f584 Main Menu, music, and credits
- Got sprites for menu buttons
- Added buttons to the menu
- Added a manager script for the menu
- Created resources for playlists and credits
- Created a music player
- Created the root scene that everything will be loaded into
2024-05-09 22:21:58 -04:00

9 lines
216 B
GDScript

class_name HealthBar extends Control
@onready var bar: ColorRect = $ColorRect2
@export var maxHealth: float = 1
func healthChanged(health) -> void:
print("Health Changed")
bar.size.y = (health / maxHealth) * 100