Question by
gamer87 · Apr 04, 2016 at 09:14 AM ·
unity 5multiplayer
Multiplayer Game- client and server controls same player
Hi, I am new to multiplayer game. I created the client server connection and player is showing at both sides.. 2 players on both the screen. But where ever I controls the same player is moving. Please help...
Comment
Best Answer
Answer by Rajeesh_AR · Jul 26, 2016 at 12:54 PM
Hi @gamer87
I think you have missed some of the concepts of multiplayer gaming. Check whether the below line is added to your script
if (!isLocalPlayer)
{
return;
}
Also check whether you have added NetworkTransform to your player- prefab.
Hope this will help. Happy Coding
hey i dont know why but if i add this to my script none off both players are moving why is that?