I made a condition for the regeneration of the health of my character. But it happens very quickly.
func _process(delta):
if food > 95:
yield(get_tree().create_timer(3.0), "timeout")
health += 1
if health > 100:
health = 100
I tried to change the value to a smaller one
func _process(delta):
if food > 95:
yield(get_tree().create_timer(3.0), "timeout")
health += 0.01
if health > 100:
health = 100
But that is not what I need
I would be grateful if you indicate where I was wrong