Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crouching and jumping not working right #3

Open
zach-lawrence-1 opened this issue Jun 7, 2019 · 8 comments
Open

Crouching and jumping not working right #3

zach-lawrence-1 opened this issue Jun 7, 2019 · 8 comments

Comments

@zach-lawrence-1
Copy link

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.

@imprisonedmind
Copy link

Did you ever resolve this?
I have the same issue

@zach-lawrence-1
Copy link
Author

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

@imprisonedmind
Copy link

I managed to find a fix in one of the pull requests.
Thanks for the reply.

@Ne9nX
Copy link

Ne9nX commented Dec 2, 2020

How did you fix the Crouching animation?

@imprisonedmind
Copy link

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

@AlfrogKun
Copy link

Has anyone found the actual solution t o this yet? if so, could you please link it, thanks!

@OnesAndZeros0009
Copy link

OnesAndZeros0009 commented Dec 19, 2022

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!

@OnesAndZeros0009
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants