Hey guys I am trying to make a character teleport from one map/area to an adjacent map/area of the same dimensions, with a press of a designated key. The character would be teleportated in the exact same location in the second map/area as the location they pressed the key in the first map/area. Does anyone have any idea on how i can go about/tackle this?
Well then, those locations are not the “same”, just some arbitrary locations that you define.
You could create empty transforms, like spawnPosLevel1, spawnPosLevel2… and so on.
Then in your manager script you would have there available, and when you teleport to some level you just use that transform as location where you move your character and camera.