Want player to move from one edge of map to the opposite of same map.

Hello everyone,

I’m relatively new to Unity and am doing everything I can to learn it, having so much fun in the prosses. I am finding myself stuck though and can’t find it on Google (not sure if its my wording or I’m just not good at google lol). If anyone can help me figure out a way to have the player when they reach the edge of the map (probably want to use colliders) to pop up on the opposite side of the map. Kind of like in Pac-man when you go through that little tunnel. I appreciate any help that can come my way. I will also continue my search on the Google to maybe find what I’m looking for, or something close that I can modify for my needs.

Try looking up “Teleporting player unity 2d” and you should have some success. Basically, you are looking for when the player runs into a certain collider at a certain point, they reappear at a different point. So you will most likely want to change the player’s transform.position. Ill leave the rest up to you but if you have issues post your code and i can help further.

1 Like

I appreciate that. Thank you