- Home /
Networking Animation problem
What are possible problems which might have occurred if the animation on a gameObject only occurs on one side of the network and not the other?
Say, pressing the space button makes the player do the jump animation. However, in this problem, when Person A presses space, both players will appear to jump on his end, but on Person B's end, none of the players will be jumping at all. Vice versa.
And is there any usual solutions to this?
Thanks.
Answer by muntahu · Dec 28, 2010 at 06:08 AM
if(!networkView.isMine){
GetComponent(PlayerController).enabled = false; //PlayerController is actually your method for making the player jump
}
if(networkView.isMine){ GetComponent(PlayerController).enabled = true; }
The solution is simply :
attach this script to your player prefab or object.
Your answer
Follow this Question
Related Questions
Animation does not work for the remote player 0 Answers
Multiplayer Walk animation playing for opposite person 0 Answers
Network animations 2 Answers
Multiplayer Animating 2 Answers
Network Animator not syncing with Clients in Netcode 0 Answers