Files
net-gunner/scripts/healthbar.gd

16 lines
389 B
GDScript

class_name HealthBar extends TextureProgressBar
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_health_changed(current : int, max : int) -> void:
max_value = max
value = current