I have my player Idle to player walk conditons as Speed greater than 0.1 in the animator
I have tried turning this to minus as when the player is going backwards the speed goes to -5 I just cant get the running animation to work when the character flips
There is a gif of what is happening
if(Input.GetAxisRaw ("Horizontal") > 0f)
{
myRigidbody.velocity = new Vector3(moveSpeed, myRigidbody.velocity.y, 0f);
transform.localScale = new Vector3(0.1960824f, 0.1960824f, 0.1960824f);
}
else if(Input.GetAxisRaw("Horizontal") < 0f)
{
myRigidbody.velocity = new Vector3(-moveSpeed, myRigidbody.velocity.y, 0f);
transform.localScale = new Vector3(-0.1960824f, 0.1960824f, 0.1960824f);
}