|
Hello, I'm trying to do the multiplayer tutorial found here : http://download.unity3d.com/support/resources/files/MultiplayerTutorial.pdf/ I'm running into a lot of troubles though. I'm trying to use all the code from that in a First Person Shooting game but when I move the player on the other client moves with me and same with them, when they move it just moves me instead of the designated object for the 2nd player. Are there any good fixes for this? Please help I'm confused about this I've tried everything within my knowledge to fix the problem but no avail.
(comments are locked)
|

"It is incredibly complicated" There is no easy solution for multiplayer or networking. Start with a VERY SMALL system and see what you can figure out! I feel that example you mention is way to complicated to begin with.
I followed it directly. I have a decent ammount of experience in unity I know the error is in this code.
using UnityEngine; using System.Collections; public class RigidAssign : MonoBehaviour { void OnNetworkInstantiate (NetworkMessageInfo msg) { if (networkView.isMine) { NetworkRigidbody _NetworkRigidbody = (NetworkRigidbody)GetComponent("NetworkRigidbody");
} }
I'm just unsure on how to fix it.