Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | lalel345 |
when collision is detected I want health to be subtracted from -10 only
if get_colliding_bodies():
health -= 10
but only once and not progressively since godot is subtracting 10 from me each frame, that is, I want life to remain at 90 and only subtract once, not to progressively lower until it remains at 0