Brilliant tutorial. I'm quite new to Unreal and definitely anything but a coder so even Blueprints I find insanely hard to understand. But I found this tutorial very clear and you explained things as you went. Thank you!
You are honestly amazing. I have watched about 4 tutorial videos about how to add crouching and none of them have worked. 2 of them were insanely complicated; 1 of them was 28 minutes. Subbed and liked 😀
If anyone was having the same problem as me where when you tested it you could crouch but when you couldn't un crouch just switch the Crouch input you made at the beginning of the video for a left ctrl node.
Great video, but there's already a Crouch and Uncrouch function built into the engine for handling the scaling of the capsule. It's better to attach the camera to the empty Mesh component and then do your blend on the camera height value. This way the capsule will adjust its shape correctly (if you scale the half height the capsule collapses bottom up so you're actually in the air for a moment during the transition and if you have foot step and landing events, those will trigger when you crouch) and you can still handle the smooth transition of the camera with your timeline blend.
Thanks. You gave me the clue I needed. I was trying to get a mix between the system in the video while also making use of the character movement's crouch and uncrouch functions and internal state.
I have a question, how can you prevent the player from un-crouching when under a surface? For example the player is in a vent shaft and they un-crouch in the shaft and just phase through the ceiling, instead of being denied because of the vent's small size. How can I put this together?
Is there any simple way to make it so when you're crouching sprinting is disabled? I've been trying to figure it out but I'm not so good with unreal yet.
Despite me doing everything perfectly, triple checked, my character actually grows doing this. Capsule half height is 88, I set A to 88, B to 44. Pressing crouch grows it larger than 88 and after 0.5s, it shrinks to 88.
I've spent 6 hours trying to find a good solution. Managed to crouch lower by shrinking the capsule radius, but the camera ends up above the player and clips though walls lol.
Great tutorial i've been looking for a channel that's quick and easy to learn from and that's you! subbed! how ever I do have a question that i feel should have been looked over in this tutorial. I managed to make a crouch toggle using this video but there is a problem where i will be under something my character has to crouch under and if i release crouch and toggle standing my character will stand up getting stuck in the geometry above. how do you disable the ability to uncrouch when something you would bump your head on is above you?
Thx! Suggestion: you can make hitbox and when player hits that, he is no longer crouching or another event has to happen. Or you can draw a line trace and when it hits, trigger an event or uncrouch. Hope that puts you in the right direction :)
@@BuvesaGameDevelopment I meant like a way to disable the ability to uncrouch when something is above you so that you cannot stand up into the geometry.
this is helpful! what a great tutorial. But I had some issue when I add a sprint, when I crouch while pressing sprint and release the sprint button it keeps running :< any ideas?
Hey! This is a great tutorial but I have a question. I used both sprinting and crouching in my game (both were from your tutorials) but for some reason I can sprint and crouch at the same time so the crouching speed is very high. Do you perhaps know how to stop this from happening?
@@BuvesaGameDevelopment could you please elaborate on this? i only started blueprints tonight and im struggling with how to stop being able to crouch and sprint at the same time
@@Hematite0 if you create variables for iscrouching, issprinting; you can add a branch after the trigger like: Branch, condition - iscoruching false - start sprinting. Hope that helped somewhat.
This is really awesome, it even has crouch jumping built in. But I’m trying to figure out how to make it so you can’t uncrouch when you are under something. Any ideas of how to fix this? Thanks though, great video!
Could you do a tutorial for how to get this working with replication? I'm currently making a 2 player networked FPS with a small group and none of us understand how to get timelines and lerps working in Unreal.
To be honest I have no personal experience with that implementation. Unreal has documentation on replication and there are some tutorials on youtube. Hope you can find it there
I was wondering why you change the walk speed when the engine already has a crouch speed? Is there a benefit to doing it the way you explain in the video?
Brilliant tutorial. I'm quite new to Unreal and definitely anything but a coder so even Blueprints I find insanely hard to understand. But I found this tutorial very clear and you explained things as you went. Thank you!
The problem with this method is that if you are crouching and have blocking obstacle above you, you can still go up into the obstacle.
u can take collution off
You are honestly amazing. I have watched about 4 tutorial videos about how to add crouching and none of them have worked. 2 of them were insanely complicated; 1 of them was 28 minutes. Subbed and liked 😀
thanks, out of the other 3 tutorials, this one actually taught me. appreciate man
Nice :)
This pushes you up in to geo if you let go in a tunnel.
If anyone was having the same problem as me where when you tested it you could crouch but when you couldn't un crouch just switch the Crouch input you made at the beginning of the video for a left ctrl node.
Great video, but there's already a Crouch and Uncrouch function built into the engine for handling the scaling of the capsule. It's better to attach the camera to the empty Mesh component and then do your blend on the camera height value. This way the capsule will adjust its shape correctly (if you scale the half height the capsule collapses bottom up so you're actually in the air for a moment during the transition and if you have foot step and landing events, those will trigger when you crouch) and you can still handle the smooth transition of the camera with your timeline blend.
You are right, its much better to use the built in system and instead manipulate the camera. tnx for this
Thanks. You gave me the clue I needed. I was trying to get a mix between the system in the video while also making use of the character movement's crouch and uncrouch functions and internal state.
Actually, this hasn't been as easy as you describe. It doesn't seem like you can detach the camera from the capsule
At the end of the day pal, this works, and it's what I'm familiar with, so I'm using this.
@@BridgesProductions2024 youll hit a wall eventually, using that method
thank you man, i did not have any issues with your tutoral, same thing goes for the sprinting one too! thanks man
I have a question, how can you prevent the player from un-crouching when under a surface? For example the player is in a vent shaft and they un-crouch in the shaft and just phase through the ceiling, instead of being denied because of the vent's small size. How can I put this together?
Is there any simple way to make it so when you're crouching sprinting is disabled? I've been trying to figure it out but I'm not so good with unreal yet.
thx for the video u made my game 100 times better god bless u mate
Do you know a possible way to get rid of running while crouching?
Dude, you saved my life. Tysm!
While I did my function in C++, this gave me the general idea for what I needed to do, thanks!
Did you do it all in c++? And how did you do it?
@@nomxxn I am just now seeing this notification. I will post a link to a gist on how I did it in my next reply. Do you still need it?
@@uysgeafpoiulawhbejkhgsdcfl yes please brother
amazing. this helped me so much your other tutorials also did that thanks man
Despite me doing everything perfectly, triple checked, my character actually grows doing this. Capsule half height is 88, I set A to 88, B to 44. Pressing crouch grows it larger than 88 and after 0.5s, it shrinks to 88.
i love it when things work
how do i make it that my player does not get stuck when you uncrouch when a block is above your head
The best solution for smooth crouching in UE5.1. Big thanks !!!
@grivzshorts double check your timeline numbers
to match the ones in the vid
how do i make it that the player does not get stuck in a block when you uncrouch
Outdated since there is no more support for input, only enchanced input actions. Is there any way to fix this?
Thanks mate!
nice. Thank you!
Thank you very much for the tutorial ! That's a subscription for me !
Thx, i appreciate it ;)
How can I crouch lower? (Sorry if it's a dumb question I'm new to this sort of thing...)
I've spent 6 hours trying to find a good solution. Managed to crouch lower by shrinking the capsule radius, but the camera ends up above the player and clips though walls lol.
it works but my speed stays the same help?
Top weer, dank u!
Great tutorial i've been looking for a channel that's quick and easy to learn from and that's you! subbed! how ever I do have a question that i feel should have been looked over in this tutorial. I managed to make a crouch toggle using this video but there is a problem where i will be under something my character has to crouch under and if i release crouch and toggle standing my character will stand up getting stuck in the geometry above. how do you disable the ability to uncrouch when something you would bump your head on is above you?
Thx! Suggestion: you can make hitbox and when player hits that, he is no longer crouching or another event has to happen. Or you can draw a line trace and when it hits, trigger an event or uncrouch. Hope that puts you in the right direction :)
@@BuvesaGameDevelopment I meant like a way to disable the ability to uncrouch when something is above you so that you cannot stand up into the geometry.
thank you so much for this tutorial!!!
i dont stand back up when i release the crouch but it slows down when i press it again. any tips?
Same
I find a solution, you have to check the "Use Last Keyframe" in the Timeline, idk why it worked but it does
@@x3gaming516Thank you sir
this is helpful! what a great tutorial. But I had some issue when I add a sprint, when I crouch while pressing sprint and release the sprint button it keeps running :< any ideas?
Excellent tutorial!
How can I make, that the player can toggle the crouch?
This tutorial was amazing but I'm just wondering if there was a way to make it toggleable?
what if u have crouch and prone as well.. :/
How would I make the character crouch even lower?
change capsule height
in capsule component
to what you want
then match the b of the lerp with that height
hey! there's a little problem... when you go under an object and you uncrouch, you stay blocked in that object....
Also when you hit crouch again?
@@BuvesaGameDevelopment No, it works when we re-crouch, but is there any mean to force stay-crouch while the player is underneath something?
@@ThundercoltPictures You can do LineTraceByChannel upwards and check if something above head exists
Me too wonder if there is an easy solution to that issue.
Thank you for tutor ♥️
Hey! This is a great tutorial but I have a question. I used both sprinting and crouching in my game (both were from your tutorials) but for some reason I can sprint and crouch at the same time so the crouching speed is very high. Do you perhaps know how to stop this from happening?
I would implement booleans and set speed based upon crouch/sprint speed combos
Thanks! I’ll give that a go
@@BuvesaGameDevelopment could you please elaborate on this? i only started blueprints tonight and im struggling with how to stop being able to crouch and sprint at the same time
@@Hematite0 if you create variables for iscrouching, issprinting; you can add a branch after the trigger like:
Branch, condition - iscoruching false - start sprinting.
Hope that helped somewhat.
that is exactly what i ended up doing :) thank you!@@GangsterFrankensteinComputer
This is really awesome, it even has crouch jumping built in. But I’m trying to figure out how to make it so you can’t uncrouch when you are under something. Any ideas of how to fix this?
Thanks though, great video!
you will not be able to do that
if the capsule height when uncrouched touches the object it wont let you go up
Is there a way to do this using the "Crouch" and "Un Crouch" functions built into Unreal Engine 5?
It's in their official documention how it's intended there
Could you do a tutorial for how to get this working with replication? I'm currently making a 2 player networked FPS with a small group and none of us understand how to get timelines and lerps working in Unreal.
To be honest I have no personal experience with that implementation. Unreal has documentation on replication and there are some tutorials on youtube. Hope you can find it there
I was wondering why you change the walk speed when the engine already has a crouch speed? Is there a benefit to doing it the way you explain in the video?
This is indeed a valid point. Habit of me for changing the walk speed. The crouch speed is indeed also a good (dare i say better) choice.
I couldn’t move after I crouched
thx
got an error..... ugh! i followed step by step i swaer! TWICE
whats the error ?
bro is watching 6. videomsun amk sonunda
👍
thx