Hello everyone. One of my animations plays too fast, can I slow it down?
I’ve tried this:
function Update () {
animation["idle"].speed = .5;
if(Input.GetKey(KeyCode.W) ||Input.GetKey(KeyCode.UpArrow) ){
if(!animation.IsPlaying("idle") || !animation.IsPlaying("idle")){animation.CrossFade("idle");
}
}else if(Input.GetAxis("Horizontal") || Input.GetKey(KeyCode.S) ){
if(!animation.IsPlaying("idle") || !animation.IsPlaying("idle")){animation.CrossFade("idle");
}
}
if(!Input.GetAxis("Horizontal") && !Input.GetAxis("Vertical")){animation.CrossFade("drive");}
}