Ok first of all this might not be the best code. But i am using a state machine and the walking animation has a boolean parameter. Well i think you will be able to understand when you see the code. But if i press D it will NOT PLAY, but if i press A IT WILL PLAY, but there is literately no difference except for where you put a, i put and and where you put D, i put D. I could NOT find the solution to this because it doesn’t look like anyone had this problem.
var animator : Animator;
function Update(){
if(Input.GetKey(KeyCode.D)){
animator.SetBool("Walking", true);
}else{
animator.SetBool("Walking", false);
}
if(Input.GetKey(KeyCode.A)){
animator.SetBool("Walking", true);
}else{
animator.SetBool("Walking", false);
}
}