continue play?

What method do you use to continue playing after the player is dead and destroyed?

Loading the scene again is the easier way but what happen if you want to respawn the player in the same point where it was dead and not at the start of the level? How can I store the position values where it has to be respawned in the reloaded scene?

The 3D Platform Tutorial covers this topic nicely. Basically you have respawn points and when the player dies/is destroyed you respawn them at one of those locations (assuming they have lives left of course). Give that tutorial a look as it offers some good ideas you can learn from that don’t require reloading the entire level/scene. :slight_smile:

Yes, I know the 3D Platform tutorial. I was looking for alternative ways to do it because this tutorial uses a “trick” (it hides the player model first and then show it again) that I can’t use in my game project. :slight_smile:

If you must go the restart the level route then use Unity’s PlayerPrefs to store the “last living position”, then on level load you always check for that information and if found use it (then clear it), if not then start the player at the default location. Easy!