- Home /
Application load advanced loading NO EXPERIENCE
what i want is a way to transfer my player to scene 2 - 3 - 4 fx, in scene 1 i have a house with 2 entrances, when player start he starts out there and can enter any of the 2 doors he want to, but! if i decide to go back outside i spawn at the "start of the new game" i want it to transfer the player to the outside infront of the door he just went though! please help me :(
Answer by Peter G · May 08, 2010 at 07:41 PM
I would use DontDestroyOnLoad(player) and just position your next level where the previous left off. Then when another level loads, Everything will be deleted except for the player, who will remain in the same position with everything identical to how it was before.
Just load the scene so that the door will line up with the position the player will be in when he passes through and you will be fine.
thanks alot! that made alot more sense to me haha sorry for being so ignorant... :) but that really made sense thanks alot! :)
Answer by KHopcraft · May 08, 2010 at 06:25 PM
You will have to use Player Prefs. They are a way of saving data like health ammo or any other variable you can think of really. Used right this will help you transfer players to new scenes and stuff. It saves the data locally on the computer.
sounds like an odd way to do it - you can use static variables for that and skip on the serializing/deserializing with playerprefs