I have a jump animation, which plays in up frame if the player is moving up, and a down frame if the player is moving down. this works fine. I transition into the jump animation by setting a bool “Jump” to true, and am trying to transition out by setting it to false. for some reason this doesn’t work. Here’s the code:
if (groundCheck != null)
{
IsGrounded = true;
animator.SetBool("Jump", false);
}
else if (groundCheck == null)
{
IsGrounded = false;
animator.SetBool("Jump", true);
}
that’s it. I have no clue why this doesn’t work. I even made the IsGrounded bool public to check on it, and it works fine, detecting when I’m in air and detecting when i’m on the ground. PLEASE HELP