This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
YokaiSurvive/GODOT/Vie.gd
2021-01-03 11:05:02 +01:00

11 lines
283 B
GDScript

extends HBoxContainer
var coeur_plein = preload("res://imgs/coeur.png")
var coeur_vide = preload("res://imgs/coeur_vide.png")
func update_health(value):
for i in get_child_count():
if value > i:
get_child(i).texture = coeur_plein
else:
get_child(i).texture = coeur_vide