Unity - Spawn Bug

by DustyShinigami   Last Updated May 15, 2019 22:13 PM

I really need some help with this issue; I can't for the life of me figure out what's wrong or how to fix it. Basically, if you move the character to the hut and press Return, their new spawn position should be inside in the next scene. Similarly, if inside the hut you press Return on the exit, the player should spawn back outside in the previous scene.

However, at random, this doesn't always work. Instead of spawning inside the hut, the player just falls down to the right of the scene. Or, if he spawns outside, it's not always at the place he should be. I suspect it's something to do with the camera, which I've set to DontDestroyOnLoad, but I can't figure out how to move the camera in the correct place.

I have the link for my project here: https://github.com/DustyShinigami/My-Unity-Projects/releases/tag/1.3

This video (9), along with 10 and 20, were the ones I followed to get the spawn point system working:


Related Questions

Updated May 14, 2017 05:13 AM

Updated August 24, 2016 08:05 AM

Updated August 20, 2016 08:05 AM

Updated April 16, 2017 05:13 AM

Updated June 30, 2017 13:13 PM