- Home /
Question by
john ancor · May 24, 2013 at 12:04 AM ·
animationcameramouseorbit
orbit mouse camera animation movement script
ok i have this script from unity guide
function Update () { if (Input.GetAxis("Vertical") > 0.2) animation.CrossFade ("walk"); else animation.CrossFade ("idle"); }
is attached with the mouse orbit camera
so when i move forward it animates and when i stop moving it makes the idle animation. the problem is when i move backwards or side to side, it doesn´t perform the right animation
??? sorry im a 3d artist not a programer...
Comment
Answer by alexanderameye · Feb 11, 2014 at 12:39 PM
You could use mecanim and a blend tree to swtich from idle animation to walk animation with the parameter speed...
Your answer
Follow this Question
Related Questions
fbx animation beats script animation? 2 Answers
Need help with a mouse orbit script 1 Answer
Camera Movement issue 1 Answer