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.
Make a GameManager object. When the player dies, call a GameManager’s function, the GameManager will respawn items.
Or you can reload the scene