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!
@theangrycodgamer Жыл бұрын
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 😀
@PlanetOuid2 жыл бұрын
thanks, out of the other 3 tutorials, this one actually taught me. appreciate man
@BuvesaGameDevelopment2 жыл бұрын
Nice :)
@gamerdude57829 ай бұрын
thank you man, i did not have any issues with your tutoral, same thing goes for the sprinting one too! thanks man
@TorQueMoD Жыл бұрын
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.
@thatlittlespider Жыл бұрын
You are right, its much better to use the built in system and instead manipulate the camera. tnx for this
@Spyder638 Жыл бұрын
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.
@Spyder638 Жыл бұрын
Actually, this hasn't been as easy as you describe. It doesn't seem like you can detach the camera from the capsule
@BridgesProductions2024 Жыл бұрын
At the end of the day pal, this works, and it's what I'm familiar with, so I'm using this.
@GeBaker Жыл бұрын
@@BridgesProductions2024 youll hit a wall eventually, using that method
@KamskiStudio11 ай бұрын
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.
@PsychoLoversGaming6 ай бұрын
u can take collution off
@mrfnafdev3052 жыл бұрын
thx for the video u made my game 100 times better god bless u mate
@Mr.Frizzles9 ай бұрын
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.
@ExplodingJellyfish2 жыл бұрын
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?
@wickwill66282 жыл бұрын
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.
@blacklight503 Жыл бұрын
amazing. this helped me so much your other tutorials also did that thanks man
@MrBoneyCreative2 жыл бұрын
Dude, you saved my life. Tysm!
@xxsemb11 ай бұрын
This pushes you up in to geo if you let go in a tunnel.
@KrisCantUpload Жыл бұрын
Do you know a possible way to get rid of running while crouching?
@Mr.Fishward Жыл бұрын
While I did my function in C++, this gave me the general idea for what I needed to do, thanks!
@nomxxn6 ай бұрын
Did you do it all in c++? And how did you do it?
@Mr.Fishward5 ай бұрын
@@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?
@nomxxn5 ай бұрын
@@Mr.Fishward yes please brother
@thesyndicatea.t.k7528 Жыл бұрын
i love it when things work
@canus5ckme6 ай бұрын
how do i make it that my player does not get stuck when you uncrouch when a block is above your head
@flipnormal66872 жыл бұрын
Thank you very much for the tutorial ! That's a subscription for me !
@BuvesaGameDevelopment2 жыл бұрын
Thx, i appreciate it ;)
@monster62362 жыл бұрын
Thanks mate!
@canus5ckme6 ай бұрын
how do i make it that the player does not get stuck in a block when you uncrouch
@SweatyCubes Жыл бұрын
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.
@krzysztofbogdanowicz45432 жыл бұрын
The best solution for smooth crouching in UE5.1. Big thanks !!!
@BADEYE198710 ай бұрын
@grivzshorts double check your timeline numbers to match the ones in the vid
@fuethengmoua2 жыл бұрын
nice. Thank you!
@Nintern4 ай бұрын
Outdated since there is no more support for input, only enchanced input actions. Is there any way to fix this?
@theblackhood11642 жыл бұрын
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?
@BuvesaGameDevelopment2 жыл бұрын
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 :)
@theblackhood11642 жыл бұрын
@@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.
@tobalmr Жыл бұрын
thank you so much for this tutorial!!!
@PsychoLoversGaming6 ай бұрын
it works but my speed stays the same help?
@KylezUwU Жыл бұрын
How can I crouch lower? (Sorry if it's a dumb question I'm new to this sort of thing...)
@GangsterFrankensteinComputer9 ай бұрын
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.
@Crutch_Media Жыл бұрын
This tutorial was amazing but I'm just wondering if there was a way to make it toggleable?
@merokka2 жыл бұрын
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?
@TheLostAngler2 жыл бұрын
Top weer, dank u!
@MoshiMoshiDoppio8 ай бұрын
Excellent tutorial!
@GTAIV327 Жыл бұрын
what if u have crouch and prone as well.. :/
@LinlordLP2 ай бұрын
How can I make, that the player can toggle the crouch?
@snowshinobi11422 жыл бұрын
i dont stand back up when i release the crouch but it slows down when i press it again. any tips?
@x3gaming5162 жыл бұрын
Same
@x3gaming5162 жыл бұрын
I find a solution, you have to check the "Use Last Keyframe" in the Timeline, idk why it worked but it does
@OgSuda Жыл бұрын
@@x3gaming516Thank you sir
@valeriiburachenko70392 жыл бұрын
Thank you for tutor ♥️
@MooseMan1500 Жыл бұрын
How would I make the character crouch even lower?
@BADEYE198710 ай бұрын
change capsule height in capsule component to what you want then match the b of the lerp with that height
@WestfilmsCo Жыл бұрын
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!
@BADEYE198710 ай бұрын
you will not be able to do that if the capsule height when uncrouched touches the object it wont let you go up
@TehJellyLord2 жыл бұрын
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.
@BuvesaGameDevelopment2 жыл бұрын
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
@DehlenaOmen2 жыл бұрын
Is there a way to do this using the "Crouch" and "Un Crouch" functions built into Unreal Engine 5?
@BuvesaGameDevelopment2 жыл бұрын
It's in their official documention how it's intended there
@ThundercoltPictures2 жыл бұрын
hey! there's a little problem... when you go under an object and you uncrouch, you stay blocked in that object....
@BuvesaGameDevelopment2 жыл бұрын
Also when you hit crouch again?
@ThundercoltPictures2 жыл бұрын
@@BuvesaGameDevelopment No, it works when we re-crouch, but is there any mean to force stay-crouch while the player is underneath something?
@ВладимирШироков-р1л2 жыл бұрын
@@ThundercoltPictures You can do LineTraceByChannel upwards and check if something above head exists
@Thaleans2 жыл бұрын
Me too wonder if there is an easy solution to that issue.
@skyifymc28002 жыл бұрын
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?
@BuvesaGameDevelopment2 жыл бұрын
I would implement booleans and set speed based upon crouch/sprint speed combos
@skyifymc28002 жыл бұрын
Thanks! I’ll give that a go
@TaliesinSilvercrow23 Жыл бұрын
@@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
@GangsterFrankensteinComputer9 ай бұрын
@@TaliesinSilvercrow23 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.
@TaliesinSilvercrow239 ай бұрын
that is exactly what i ended up doing :) thank you!@@GangsterFrankensteinComputer
@dishmal2 жыл бұрын
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?
@BuvesaGameDevelopment2 жыл бұрын
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.
@Red_and_Black_Manic_Artists11 ай бұрын
thx
@Qrs6737 Жыл бұрын
I couldn’t move after I crouched
@stormolflak2 жыл бұрын
👍
@ImapsychoLover Жыл бұрын
got an error..... ugh! i followed step by step i swaer! TWICE