Smooth CROUCHING in UNREAL ENGINE 5

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 93

  • @Bubblegummonsters
    @Bubblegummonsters Год назад +3

    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!

  • @KamskiStudio
    @KamskiStudio Год назад +3

    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.

  • @theangrycodgamer
    @theangrycodgamer Год назад +2

    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 😀

  • @PlanetOuid
    @PlanetOuid 2 года назад +7

    thanks, out of the other 3 tutorials, this one actually taught me. appreciate man

  • @xxsemb
    @xxsemb Год назад +1

    This pushes you up in to geo if you let go in a tunnel.

  • @Mr.Frizzles
    @Mr.Frizzles 10 месяцев назад +1

    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.

  • @TorQueMoD
    @TorQueMoD Год назад +13

    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
      @thatlittlespider Год назад

      You are right, its much better to use the built in system and instead manipulate the camera. tnx for this

    • @Spyder638
      @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
      @Spyder638 Год назад +4

      Actually, this hasn't been as easy as you describe. It doesn't seem like you can detach the camera from the capsule

    • @BridgesProductions2024
      @BridgesProductions2024 Год назад

      At the end of the day pal, this works, and it's what I'm familiar with, so I'm using this.

    • @GeBaker
      @GeBaker Год назад

      @@BridgesProductions2024 youll hit a wall eventually, using that method

  • @gamerdude5782
    @gamerdude5782 10 месяцев назад

    thank you man, i did not have any issues with your tutoral, same thing goes for the sprinting one too! thanks man

  • @ExplodingJellyfish
    @ExplodingJellyfish 2 года назад +6

    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?

  • @wickwill6628
    @wickwill6628 2 года назад +4

    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.

  • @mrfnafdev305
    @mrfnafdev305 2 года назад +3

    thx for the video u made my game 100 times better god bless u mate

  • @KrisCantUpload
    @KrisCantUpload Год назад +2

    Do you know a possible way to get rid of running while crouching?

  • @MrBoneyCreative
    @MrBoneyCreative 2 года назад +1

    Dude, you saved my life. Tysm!

  • @uysgeafpoiulawhbejkhgsdcfl
    @uysgeafpoiulawhbejkhgsdcfl Год назад +2

    While I did my function in C++, this gave me the general idea for what I needed to do, thanks!

    • @nomxxn
      @nomxxn 7 месяцев назад

      Did you do it all in c++? And how did you do it?

    • @uysgeafpoiulawhbejkhgsdcfl
      @uysgeafpoiulawhbejkhgsdcfl 6 месяцев назад

      @@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?

    • @nomxxn
      @nomxxn 6 месяцев назад +2

      @@uysgeafpoiulawhbejkhgsdcfl yes please brother

  • @blacklight503
    @blacklight503 Год назад +1

    amazing. this helped me so much your other tutorials also did that thanks man

  • @SweatyCubes
    @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.

  • @thesyndicatea.t.k7528
    @thesyndicatea.t.k7528 Год назад

    i love it when things work

  • @canus5ckme
    @canus5ckme 7 месяцев назад

    how do i make it that my player does not get stuck when you uncrouch when a block is above your head

  • @krzysztofbogdanowicz4543
    @krzysztofbogdanowicz4543 2 года назад +2

    The best solution for smooth crouching in UE5.1. Big thanks !!!

    • @BADEYE1987
      @BADEYE1987 11 месяцев назад

      @grivzshorts double check your timeline numbers
      to match the ones in the vid

  • @canus5ckme
    @canus5ckme 7 месяцев назад

    how do i make it that the player does not get stuck in a block when you uncrouch

  • @Nintern
    @Nintern 5 месяцев назад

    Outdated since there is no more support for input, only enchanced input actions. Is there any way to fix this?

  • @monster6236
    @monster6236 2 года назад +1

    Thanks mate!

  • @fuethengmoua
    @fuethengmoua 2 года назад +1

    nice. Thank you!

  • @flipnormal6687
    @flipnormal6687 2 года назад +2

    Thank you very much for the tutorial ! That's a subscription for me !

  • @KylezUwU
    @KylezUwU Год назад +1

    How can I crouch lower? (Sorry if it's a dumb question I'm new to this sort of thing...)

    • @GangsterFrankensteinComputer
      @GangsterFrankensteinComputer 10 месяцев назад

      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.

  • @PsychoLoversGaming
    @PsychoLoversGaming 6 месяцев назад

    it works but my speed stays the same help?

  • @TheLostAngler
    @TheLostAngler 2 года назад +1

    Top weer, dank u!

  • @theblackhood1164
    @theblackhood1164 2 года назад +3

    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?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  2 года назад +2

      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 :)

    • @theblackhood1164
      @theblackhood1164 2 года назад

      @@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
    @tobalmr Год назад +1

    thank you so much for this tutorial!!!

  • @snowshinobi1142
    @snowshinobi1142 2 года назад +1

    i dont stand back up when i release the crouch but it slows down when i press it again. any tips?

    • @x3gaming516
      @x3gaming516 2 года назад

      Same

    • @x3gaming516
      @x3gaming516 2 года назад +1

      I find a solution, you have to check the "Use Last Keyframe" in the Timeline, idk why it worked but it does

    • @OgSuda
      @OgSuda Год назад

      @@x3gaming516Thank you sir

  • @merokka
    @merokka 2 года назад +1

    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?

  • @MoshiMoshiDoppio
    @MoshiMoshiDoppio 9 месяцев назад

    Excellent tutorial!

  • @LinlordLP
    @LinlordLP 2 месяца назад

    How can I make, that the player can toggle the crouch?

  • @Crutch_Media
    @Crutch_Media Год назад

    This tutorial was amazing but I'm just wondering if there was a way to make it toggleable?

  • @GTAIV327
    @GTAIV327 Год назад

    what if u have crouch and prone as well.. :/

  • @MooseMan1500
    @MooseMan1500 Год назад

    How would I make the character crouch even lower?

    • @BADEYE1987
      @BADEYE1987 11 месяцев назад

      change capsule height
      in capsule component
      to what you want
      then match the b of the lerp with that height

  • @ThundercoltPictures
    @ThundercoltPictures 2 года назад

    hey! there's a little problem... when you go under an object and you uncrouch, you stay blocked in that object....

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  2 года назад

      Also when you hit crouch again?

    • @ThundercoltPictures
      @ThundercoltPictures 2 года назад +1

      @@BuvesaGameDevelopment No, it works when we re-crouch, but is there any mean to force stay-crouch while the player is underneath something?

    • @ВладимирШироков-р1л
      @ВладимирШироков-р1л 2 года назад

      @@ThundercoltPictures You can do LineTraceByChannel upwards and check if something above head exists

    • @Thaleans
      @Thaleans 2 года назад

      Me too wonder if there is an easy solution to that issue.

  • @valeriiburachenko7039
    @valeriiburachenko7039 2 года назад +1

    Thank you for tutor ♥️

  • @skyifymc2800
    @skyifymc2800 2 года назад +1

    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
      @BuvesaGameDevelopment  2 года назад +2

      I would implement booleans and set speed based upon crouch/sprint speed combos

    • @skyifymc2800
      @skyifymc2800 2 года назад +1

      Thanks! I’ll give that a go

    • @Hematite0
      @Hematite0 Год назад

      @@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

    • @GangsterFrankensteinComputer
      @GangsterFrankensteinComputer 10 месяцев назад +1

      @@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.

    • @Hematite0
      @Hematite0 10 месяцев назад

      that is exactly what i ended up doing :) thank you!@@GangsterFrankensteinComputer

  • @WestfilmsCo
    @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!

    • @BADEYE1987
      @BADEYE1987 11 месяцев назад

      you will not be able to do that
      if the capsule height when uncrouched touches the object it wont let you go up

  • @DehlenaOmen
    @DehlenaOmen 2 года назад

    Is there a way to do this using the "Crouch" and "Un Crouch" functions built into Unreal Engine 5?

  • @TehJellyLord
    @TehJellyLord 2 года назад

    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.

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  2 года назад

      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

  • @dishmal
    @dishmal 2 года назад

    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?

    • @BuvesaGameDevelopment
      @BuvesaGameDevelopment  2 года назад

      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.

  • @Qrs6737
    @Qrs6737 Год назад

    I couldn’t move after I crouched

  • @Red_and_Black_Manic_Artists
    @Red_and_Black_Manic_Artists Год назад

    thx

  • @ImapsychoLover
    @ImapsychoLover Год назад

    got an error..... ugh! i followed step by step i swaer! TWICE

    • @BADEYE1987
      @BADEYE1987 11 месяцев назад

      whats the error ?

  • @SolusLupuse
    @SolusLupuse 10 дней назад

    bro is watching 6. videomsun amk sonunda

  • @stormolflak
    @stormolflak 2 года назад +1

    👍

  • @belekass
    @belekass 5 месяцев назад

    thx