Weird jump animation bug I don't know how to fix

evergreenspanishicelandicsheepdog
There is a weird glitch I am having with my game, I know that the code is fine, but for some reason the jump animation ends before I even get lift off, another weird thing is that it plays the animation when I press space again in the air!

I don’t even know what is wrong or how to fix this…
The problem im having: I don’t know what I don’t know…

Hey,

To begin, as a piece of advice, even if everything seems to be working flawlessly, there still may be issues with your code that you haven’t noticed yet. If things aren’t working, it doesn’t make sense to assume that your code is fine.

If you’re using the animator and setting up transitions manually, the problem could lie there. If you’re using Animator.Play() to control all of your animations, then the issue is probably in the code.

If you post the script that contains your jump logic here, someone will most likely be able to help you. Posting some images with your transition logic (if you’re using transitions) would also be helpful.