Jump animation delayed when on a higher platform.
Made a character whose normal walk is a sorta hop. Normally, it works great where everytime it touches the ground it'll put its feet down and if you hold down a or d itll still put it's feet down in between all the times it's jumping. i recently just added another platform that it can jump up but now for some reason the jump animation is so delayed that when i hold walk down it doesn't put its feet down in between jumps. Here is the code I use to transition between jump and idle animations (jumping is played when isWalking = true). Doesn't make sense to me what would be causing the delay. Video attached shows it.
if (Mathf.Abs(rb.velocity.x) > 0 && Mathf.Abs(rb.velocity.y) > 0) { isWalking = true; } else { isWalking = false; }
Comment