Yes I can help with this!
So lets suppose you have a very simple "level based" game, where the player enters a level at a start position, does stuff, and then leaves the level by another location. THEN completes THAT level etc. No problems there really, BUT if you want your character to be able to "go back" to a previous level, then he will spawn from the start, right? Not where he exited from. So we need to make a system where the game knows where the player is, and load him to there instead.
First... Make your Player a prefab:
(drag to library) and disable your player character in your scene. We will be spawning him in from the start.
Add Spawn positions:
Can be anything, an empty game object, but I use a red sphere, but I will turn off the rendering of the sphere when my game is done, but its nice to have something visible, that you can select easily and move about.
Copy it to anywhere, in all levels, where your character might need to spawn to. (in our example start and end of the level. Name each one something sensible, and drag it to Library to make it a prefab too! (so you have lots of these, all differently named.)
Create a global String variable, and name it Spawn_Location
Make an empty game object and call it SPAWN_CONTROL:
(or something) add an fsm to it. Also make it a prefab and add it to all your scenes. You will need to update (hit apply) every-time you add something to this.
In this we will find out what a variable is currently called, and depending on that set a Spawn Point, then spawn our player there.
An heres what it looks like:
Each String Compare looks to see what the current name of Spawn_Location is, and send it out to...
...where Spawn Point is one of the red spheres prefabs. The place you want the guy to spawn too, when the variable is set thus...
But how do you set the variable?
Make a collider object and call it SCENE_CHANGER:
Add an fsm. Make it the thing that the player must bump into or click when they need to change levels. (over a door way, or a teleport pad, or a hole in the ground, whatever you game is about)
In the image you can see something called Get message from vp switch, this is just a message coming from another bit of my game where I handle clicks on objects and stuff... you could do anything, walk into a collider, or click a button
In this fsm we will SET the above mentioned variable, to tell SPAWN_CONTROL where our player currently is... so that the SPAWN_CONTROL fsm in the next scene will know which Spawn Sphere to send you man at...
AND it will load that next scene.
Hope thats helps...
Mark