0 votes

I have two kinematic bodies (player 1 and player 2) with their own scripts. How do i go about integrating multiplayer feature where the host is always player 1 and the guest(the one who joins) is always player 2.

Godot version Godot 3.2.3
in Engine by (16 points)

1 Answer

0 votes

That's a pretty broad question.
In general, each side needs a kinematicBody which the client can control, and another "dummy" one, which moves only by the position received from the other side.

Note that multiplayer is more complex than a single-player game, and would require some work to look and feel good.

I'd suggest watching the following series, which explains the topic extremely well.
Good luck with the game!

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