Godot 4.2.2
So i’m wondering is there a simple way to make a health counter or something like that I already have a working health system with my code now i’m wondering Is there a way to have a counter in game to see my health while im playing I know this is possible but everything I tried hasn’t worked
im fairly new to Godot I know all the main functions and can write simple pieces of code with gdscript but this isn’t anything I have ever come across
my health code is
extends Node2D
var take_damage = false
var health = 3
func _on_area_entered(_area: Area2D):
take_damage = true
if take_damage == true:
health -= 1
print(health)
if health == 0:
get_tree().quit()