2D-Animation
2D-Animation copied to clipboard
Crouching and jumping not working right
Crouching is constantly being turned on and off and the animation is looping from crouching to idle over and over. Also jumping animation doesn't play unless I'm already in the air and press space when it should activate when I am not touching the ground.
Did you ever resolve this? I have the same issue
Yes, but I can't remember how because it has been almost a year. I'll try to look at my old project if you want. Reply back if you want me to look at it
I managed to find a fix in one of the pull requests. Thanks for the reply.
How did you fix the Crouching animation?
I think I looked through the pull requests and found a change at the code, Sorry it was long ago I am not sure now
Has anyone found the actual solution t o this yet? if so, could you please link it, thanks!
i have got a problem with the jumping.
crouching is fine but it will only play my jump animation fully when i press space while in the air; however my jump animation is visible for several frames when space is pressed while on the ground before returning to my run, or idle animation.
my guess is that it's probably detecting a collision before fully clearing the floor therefore triggering this bit of code: public void
public void OnLanding () { animator.SetBool("jumping", false); }
early!
however I have spent the good part of two and a half hours trying to fix it but have failed!
I am new to unity and don't know if there is a simple fix to this.