In the game tutorial for scene changing, you have us drop a changer and place on the edge on the road.

I want to know if this is possible, say I make a hug piece of terrain, 1000x1000 and right beside that piece I add another 1000x1000. Can I add a scene changer on the edge and then stretch it to the length of the edge and have the entire distance be used as a scene changer?

and if you say yes to the question, How do I make it so the character can spawn on the other side like he zoned into the correct spot?

I hope I explained this correctly

Thank you!
  • yes change the colldier on it from a sphere collider to a box collider an just change the size of it to what ever you want
    new website can be found here http://www.fore-loregames.com

    Follow the game Development on Twitter https://twitter.com/Fore_Lore_Games

    or check out the face book page here https://www.facebook.com/ForeLoreGames
  • what about the other half of the question?
  • If you check the inspector of the Scene Changer you'll see a drop-down labeled "target type".
    You can use a Vector3 variable as coordinates instead of a spawn point.

    In order for it to work correctly, you'll want to have a Global Event that stores your character's position upon scene change and assigns it to a global Vector3 variable.
    (If you're following along in the tutorials, you'll see how Global Events work.)
    Then just make sure the map in the next scene is positioned accordingly.

    Have a series of Check Variable steps to determine which way your character went.
    Then add or subtract from the global Vector3 variable accordingly.

    So let's say you have one map that is anchored on x0/z0.
    If you trigger a scene changer at x441/z999, the Global Event can store your character's position, adjust it if necessary, and then use it to place your character in the new scene.
    In this case we might have it subtract z994 so that you ended up with x441/z5.
    You'd spawn at the appropriate place along the x perimeter 5 units in.


  • Yeah, pretty much like that :)
    Store the players position upon scene change and use that variable to spawn him again - requires the next scene to start at the same coordinates the previous scene ended, or manipulating the variable.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Man that is awesome! Thank you...
Sign In or Register to comment.