- Home /
How to respawn items along with player
I have a respawn script that changes the transform of my player to that of certain checkpoints when health is 0 and destroys the object when there are no more lives. I was wandering how I could respawn certain items (such as health pickups or necessary power ups) along with the player. As is, if my player dies and respawns before some points he will not be able to proceed or will repeat the run without the health pick ups. I thought about making the items respawn after a set amount of time but that creates so many level design problems that there must be a better way. Is there a norm for how to approach this? Any suggestions to set me on the right path would be appreciated.
Answer by cdr9042 · Dec 26, 2018 at 08:09 AM
Make a GameManager object. When the player dies, call a GameManager's function, the GameManager will respawn items. Or you can reload the scene
Your answer
Follow this Question
Related Questions
In My Multiplayer Game only he host Respawns when he dies 0 Answers
Crushing death in a plataform game using character controller 1 Answer
script not working pls solve it 1 Answer
[UNITY 2D] Can I create a spawner that spawns another enemy after its death using IF statements? 1 Answer
Animation of the death (2D Game) 0 Answers