0 votes

I am trying to make a basic 2 players project which would have a main map(overworld) and sub maps ( caves/dungeons etc... ) I have set area2d to trigger the change of node but, both player nodes get transfered to the new node.

How would you approach this. Anyone know of an online video, written tutorial or, github project that I could have a look at to solve this ?

Thank you

Godot version 3.2
in Engine by (12 points)

Are you using "couch multiplayer"? (Two players on the same PC)

Nope, 2 different clients either on different computer (with a friend oversea) or 2 godot instance on the same computer

1 Answer

0 votes

in the area 2d trigger of yours, if you do a getoverlappingbodies etc. It will return an array. and if you do a array.front() in it, it will return the nearest player.

by (386 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.