- Home /
Question by
Dalecn · Aug 02, 2018 at 11:19 PM ·
c#camerascripting problemplayerscene-switching
Player Sprite Changing Scenes And getting a new camera to follow it and default spawn position
I have a player sprite which changes scenes when it enters a building and then it should start of at the inside entrance of the building however it starts at its last position in the over-world. Is there a way to shift the scene to lineup with the player the scene uses a 2d tilemap for everything. Then also to get the camera to follow the player when it isn't from that scene originally.
Thanks
Comment
Answer by AdityaViaxor · Aug 03, 2018 at 09:46 AM
assign position in start function or make script dontDestroyOnLoad .