- Home /
weird animation problem in multiplayer
i have a gameobject with animation attached that when it change position ->play run animation, it stop moving ->play idle animation
the animation is not sync with internet
when client A move his gameobject, client B gameobject copy A's animation but standing still.
How can i fix this?? thx
Answer by Seizure · Aug 08, 2013 at 12:25 PM
You'll want to make a script that will turn off the active camera if the networkview is not theres like so:
if (!networkView.isMine)
Camera.main.camera.enabled = false;
As for the animations, make sure your player characters all have the networkView component and that they are all synchronized.
Another issue I commonly get with networking is that when one object plays the animation it plays it for the rest, again make sure you are only doing it for networkView.isMine only.
i dont think it is the active camera..
i only have networkview sync with rigidbody position only
i would like the animation only be deter$$anonymous$$ed by the movement locally to reduce bandwidth.
but i dont know why client B gameobject would do the animation of A...
Your answer
Follow this Question
Related Questions
Field of view scripted animation curve 1 Answer
Photon Multiplayer Animations 2 Answers
How to run an animation mouse click. 2 Answers
Player is running just few seconds 0 Answers
Playing animations problem 1 Answer