Respawning [Solved]

Hello Everyone,

I need some help with something. When my players health gets to “0” it goes to a death screen. Basically i want to respawn in the position i first spawned and reset my health stats. Does anyone know how i could do this. also i am using a state based game. Thanks.

  • GlennBrann

Save the last spawn position, and the original health.

Then when you die, set the player position and health to the saved values.

Cool Thanks man :slight_smile:

I’m kinda disturbed this wasn’t the solution you immediately jumped to. Try to think about problems before posting them.

To be honest man it was, i just was having some problems. i thought i was doing it wrong, or there was a better way, Sorry.