- Home /
Localmotion head spinning.
So when I have localmotion disabled everythign works fun, but whne its on my characters head just spins(insanely) and never goes back to localmotions walking and idle animations. I herd I want to crossfade back to localmotion possibly? my script
function Update () { PlayAttackAnim(); }
function PlayAttackAnim() { if(Input.GetMouseButtonUp(0)) { animation.Play("attack1"); } else if(Input.GetMouseButtonUp(1)) { animation.Play("attack2"); } else if(!animation.IsPlaying("attack1") && !animation.IsPlaying("attack2")) { animation.Play("Idle"); } }
Your answer
Follow this Question
Related Questions
Multiple animations for a character 1 Answer
Switching between multiple classes 2 Answers
RPG like GUI character control 1 Answer
Simple Character Animations 2 Answers
How to animate characters? 1 Answer