PS: just to clarify all states numbers are correct and in the code I’m just trying to make it work for the right arrow for right now.
when i just jump and not walk it works, when i press right arrow its going forward with the walk animation but when i"m trying to jump while moving its stays in walk animation.
here’s the some of the code code.
if (Input.GetKey(KeyCode.RightArrow) && !Input.GetKeyDown(KeyCode.Space))
{
anim.SetInteger("warriorStates", 1);
transform.rotation = Quaternion.Euler(0, 0, 0);
transform.Translate(characterController, 0, 0);
}
if (Input.GetKey(KeyCode.RightArrow) && Input.GetKeyDown(KeyCode.Space) && makeJumpOnce == true)
{
StartCoroutine(“jumpOnlyOnceAndWaitToJumpAgain”);
}