- Home /
Question by
aclee · Dec 16, 2013 at 06:43 PM ·
positionsceneswitchteleporting
change scene and and position
does anybody know how could i switch between scenes and then teleport the play to a certain position in the new scene?
Comment
Answer by MFen · Dec 16, 2013 at 07:31 PM
Application.LoadLevel("Level2");
If you are trying to keep an object persistant from one scene to the next you need to put another script on that object and in the start use
DontDestroyOnLoad(this);
You can than change the value of the persistance object and whatever scripts it has such as starting position before you load the scene and the objects in the next scene can look for the persistance and find its starting position.
Answer by OZBEND · Oct 19, 2016 at 06:11 AM
When a player moves to another scene, he searches for the position. But before that, one frame is visible to the old position. How to fix it?