Just gotta mention my thought.
Seems this Portal thing has got Sam a bit off track.
Please tell me if I have got this correct.
The purpose of the Portal is to move from scene to scene (scene management).
If this is true.
It seems as if I want my player to exit thru a Portal. If Player comes back thru it should return him to same Portal Correct? … the one Player went thru…
If that is true than the only Portal in the scene that would have a -1 for SceneToLoad is our first Portal scene because there is NO scene to go back to.
In sandbox I have two portals… and I feel as if I do not need a Portal for start of scene only at its end or exit. This would allow Player to exit Sandbox into Sandbox2
In Sandbox2 I have two Portals, One at its beginning and One at its end.
When I go thru sandbox exit Portal I enter Sandbox2,
at this point if I go back thru that same Portal I go back to where I was just at sandbox exit Portal.
In Sandbox2 since its currently my last scene Sandbox2 exit Portal points to sceneToLoad 0 (back to start of game)
This was not presented very clearly does it Look like i got the general idea of what we need?
Thanks
PS: All this confusion did give me an idea.
It seems for my game I may want Portals within the scene.
I feel Like I am going to set up several areas of interest each scene. With an In Scene Portal system I could give my Player the ability to transport to any area. I may just create a Teleport system for In Scene transports.
I also have another question… Thinking about my WORLD map it may be better to have Unique Portal Names for each Portal? With a way for code to determine weather or not it is an in scene Teleport or a scene transition.
Thanks for helping me understand this section…