Hey guys, here are some pictures with my code. Every time I crouch after I sprint it is set to the walking speed and I have to uncrouch and crouch again in order to get back to my crouch speed. How do I fix this? It would be nice if you guys would send pictures because I process pictures much faster than words if that makes sense. Thanks (:
Hello SS_Limecup you are implementing your crouching system a bit wrong.
What you can do instead is change the character movement mode to Crouching which is already implemented. We need to do just a few things.
-
The sprint should look something like this
-
Here is the crouch
-
You can confgure crouch settings in the Character Movement Component by searching for crouch
Note: One thing i forgot is you must have Can Crouch ticked in order for this to work
Thank you so much!! I also very much appreciate the screenshots! The issue is solved but now a new issue came up. I have a timeline to crouch smoother and now every-time I crouch I am at the same height as when I am walking. Any way to fix that?
You don’t need the timeline and set capsule half height because the Crouch/UnCrouch function already does that. So just remove them and it should be fine. Again you can adjust the Capsule half height size when crouched by searching for Crouch in the character movement component.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.