I am trying make a character take fall damage
my code:
velocity.y += gravity * delta
fall_strength += 1
if fall_strength >= 120:
print("fall damage taken")
but if I do that when that, my character hasn't touched the ground and I took fall damage. I was thinking of a repeat until so
if fall_strength >= 120:
repeat_until is_on_floor:
print("fall damage taken")
but there isn't this function on godot.
So how should i go about this???