- Home /
Network Animation Problem
Hi I have a little problem with my network animations in my game. The problem is that if my character does a animation, all the other player do it same.
function Update () {
if (Input.GetAxis("Vertical") > 0.2)
animation.CrossFade ("walk1");
else
animation.CrossFade ("idle1");
}
PLS HELP !!
Answer by whydoidoit · Jul 10, 2012 at 01:36 PM
Putting: if(!networkView.isMine) return;
At the start of your Update will stop the other animations, but then your other characters won't just animate when they move - instead you could check for how far the character has moved since the last frame and use that to cross fade your animations, this will work for both the controlled character and the other players.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073958im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Network : sync animations of characters 1 Answer
Sync Network Animation State 2 Answers
Sync animaor of child prefab 0 Answers
Network - Sync Issue 0 Answers
Network animations 2 Answers