How do I get the player to teleport to the other side of the map upon reaching the edge

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By linklin

In games like grand theft auto: san andreas when you reach the edge of the map, you teleport to the other side to ensure the player never leaves the game world. How can I implement a similar feature in godot? I know it’s capable of this, but I don’t know how to do that.

:bust_in_silhouette: Reply From: jgodfrey

See my answer to a similar question just yesterday…

but would that work for a 3d game?

Millard | 2020-11-10 03:33

While the details may differ based on the makeup of your game, the principle is the same. When the player reaches some specified limit in the world, you want to “warp” them (change their position) to some other location in the world.

jgodfrey | 2020-11-10 03:41