extends Control
var player_die = false
var death: int = 0
func _process(delta) -> void:
$Number.text = str(death)
if player_die:
print(death)
death + 1
player_die = false
return
func deathcount():
player_die = true
Trying to add a death count on my player settings but feel like the count doesn't update directly or change the int = 0 when the player death. Yes i'm a rookie in gd code 😛
the label doesn't update.