I challenge you guys to add a timer that prevents the player from taking damage for 1 sec after receiving damage.
1 Like
It was actually really easy:
All I had to do is add a Timer node to the player with oneshot
on and change the take_damage()
function to this:
func take_damage():
if timer.is_stopped():
timer.start()
took_damage.emit()
2 Likes