This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

So I Followed a WebRTC Multiplayer Tutorial. I'm Able To Host or join a game, The Problem is that only one play can see, the other is blank. Also, player 1 is controlling the other player. Can anyone help me fix this? Here is a link to a video showing the bugs, And here's the link To the code.

Godot version 3.4.3
in Engine by (12 points)

1 Answer

0 votes

Quick glance at the code, you should add more debug(print()) code to see what is going on at most functions to see where the second player is at through the whole joining process. I didn't go through your whole code base, so this is just general helpful information.

I watched the video and you are clicking the host button not the join button as well. I assume this is built to be the main player hosts a server and everyone else joins. If so you need to make sure that you hosting/ joining properly or that the code is working around that as well.

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