0 votes

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.

in Engine by (12 points)

1 Answer

0 votes

See my answer to a similar question just yesterday...

https://godotengine.org/qa/87069/object-goes-offscreen-come-from-opposite-side

by (10,914 points)

but would that work for a 3d game?

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.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.