0 votes

Hello. What I want to do is make the player switch between two gates in the same scene. Watch the demo video for a better understanding


What I want is similar to what this man did, but without complication .. I tried a lot to correct the code and make it suitable for me, but I did not succeed


in Engine by (14 points)
reshown by

1 Answer

0 votes

you can use an "on area entered" signal on the portal and code to change player global position to the next portal global position

you could even make a pre-made single scene with 2 portals linked to one another so you just add that node to you scene any time you need 2 portals connected to each other

or a scene with just one portal and you hard-code each one individually (just the "next portal" position part)

by (367 points)
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 Frequently asked questions and 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 [email protected] with your username.