Multiplayer for two separate kinematic bodies for a fighter game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By miqdadn

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.

:bust_in_silhouette: Reply From: putskan

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!