use str(int)
to convet int to string.
func _ready():
var playerMaxHealth = player.max_health
bar.max_value = playerMaxHealth
number_label.text = str(playerMaxHealth)
use str(int)
to convet int to string.
func _ready():
var playerMaxHealth = player.max_health
bar.max_value = playerMaxHealth
number_label.text = str(playerMaxHealth)