teleporting locaitons

HI All,

I have a town that my students are going to explore. It’s rather large, so I split it up into 3 sections to reduce student wait time while it’s loading. The “village” is north west of the main part of town and the Dock is east of town. I think I know how to teleport between the different scenes, but is it possible to effect the teleport locations? i.e. if the player goes from village to town they teleport into the west side of town, but if they come from the dock they teleport to the east side of town? If is it possible, what information should I be reading on how to do this?

Thanks

Never tried it, but you can preserve variable values from scene to scene. Given this, you can link spawn points to scenes. Then what you do is store the scene you’re in, then load the new scene, have a script read whatever scene you just came from, and load the player at the appropriate spawn point.