How to respawn my player exactly where he died

create a Timer and always move the respawn position to the player’s position… set the Timer as you need, every second or two. as it suits you.

Check is_on_floor() to make sure you don’t create a position in the air. and best to remember the 3 positions to the rear. this is in case you accidentally generate a position and it’s in a damage trigger and a deadend occurs.


For demonstration. I created a deadpoint as Position2D and refresh its position only when the player is on floor after falling

the golden diamond is the last safe position where the player can respawn after his death


:godot: TURRiCANOS

2 Likes