- Home /
Changing the player's starting position depending on the scene transition.
So I have 2 scenes in my 2D game, the first one is like a "bedroom" where, at the start of the game the player would spawn next the the bed, that's easy to do but then I want him to go downstairs which is a new scene then when he comes back I want his starting position to be next to the stairs which are on the other side to the bed, so how can I go about changing the starting position of the player depending of which scene he is coming from? Thanks.
Answer by Marks98 · Jul 08, 2018 at 03:31 PM
You can save player position when leave the scene and load position at the beginning.
For saving position you can use this by the unity.
You can also save only one variable and using if switch between two position of player. But i think the first method is better.
Your answer
Follow this Question
Related Questions
Referencing a gameobject in another scene 1 Answer
Scene loading delay after upgrade 4.6 to 5. 0 Answers
How Do I Link Different Scenes? 4 Answers
Asset Bundle starts loaded 0 Answers