# How to make player crouch?

**URL:** <https://forums.unrealengine.com/t/how-to-make-player-crouch/432213>\
**Category:** Blueprint\
**Tags:** unreal-engine, crouching, Blueprint, question\
**Created:** [August 22, 2018, 2:42pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213 "2018-08-22T14:42:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virtyjab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Virtyjab](https://forums.unrealengine.com/u/Virtyjab)\
**Post date:** [August 22, 2018, 2:42pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/1 "2018-08-22T14:42:00Z")

</div>

Im new here, I making first person game, and my question is how to make player crouch and there is a way to reduce speed when crouching?

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [August 22, 2018, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/2 "2018-08-22T15:12:31Z")

</div>

I saw a few tutorials for that on youtube

---

<div class="post-metadata">

**Author:** ![Kyle\_Carpio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_Carpio](https://forums.unrealengine.com/u/Kyle_Carpio)\
**Post date:** [August 22, 2018, 3:30pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/3 "2018-08-22T15:30:09Z")

</div>

You can find tutorials online really easily, but basically, you just need to add inputs in your project settings or use any key you want for that crouch to work. Later, you will need booleans in the Blueprint section to tell if crouch is pressed or not, then you will have to set the max character speed lower by getting the character movement. In addition, you will also have to change the Z-axis of the first person camera lower when the crouched input is pressed.

---

<div class="post-metadata">

**Author:** ![Virtyjab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Virtyjab](https://forums.unrealengine.com/u/Virtyjab)\
**Post date:** [August 22, 2018, 3:42pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/4 "2018-08-22T15:42:01Z")

</div>

Sorry, but I don’t understand. Im not using any template, I have blank and only starting items. I have scripts for moving and looking, but I don’t know it is only Camera or character. I tried some tutorial online but every don’t work,I don’t know where is problem, here is my script for move and looking:

 ![251285-blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/c/0fca10bf34d228cd9f54b6f4459a919fa35adeb5.png)

I don’t have any other scripts, I just testing for now. What I need to do now?

---

<div class="post-metadata">

**Author:** ![Kyle\_Carpio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_Carpio](https://forums.unrealengine.com/u/Kyle_Carpio)\
**Post date:** [August 22, 2018, 5:11pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/5 "2018-08-22T17:11:47Z")

</div>

Oh, I see, my bad. Well for some reason I cannot view your image as it seems you did not upload it right, however, would you like to see an example of mine?

---

<div class="post-metadata">

**Author:** ![Virtyjab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Virtyjab](https://forums.unrealengine.com/u/Virtyjab)\
**Post date:** [August 22, 2018, 5:15pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/6 "2018-08-22T17:15:41Z")

</div>

Yes, I really need help

---

<div class="post-metadata">

**Author:** ![Kyle\_Carpio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_Carpio](https://forums.unrealengine.com/u/Kyle_Carpio)\
**Post date:** [August 22, 2018, 5:25pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/7 "2018-08-22T17:25:13Z")

</div>

![251290-crouch-action.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/7/607065b3b799ad0d36e312f5ff3b681780c1e3be.png)

Okay, as you are doing a first-person game and depending on how you want your crouch to be, this is how it’s done. You get the input you created from the project settings into your Blueprint character, you then create Booleans and set them to check if they have been pressed or not. If it’s pressed, set the max walk speed to any figure you want to slow down. If it is not pressed, then you type in your current walk speed you have your character by default. I have a branch because I have a jog function as well so you do not have to add it if your character does not use it. FlipFlop you can use if you want to toggle your character to crouch, however, if you want just hold the input button, just have the release key to the not set crouch. Lastly, make sure you call Character movement and link with the walk speed, otherwise Unreal Engine won’t know what you want to change the speed.

For your character to lower himself, you will have to configure the Z-Axis from the camera to go down when the input has been pressed. I do not have it here as I am just doing a Third Person game so the animation does it for me.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![Kyle\_Carpio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kyle\_Carpio](https://forums.unrealengine.com/u/Kyle_Carpio)\
**Post date:** [August 22, 2018, 5:33pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/8 "2018-08-22T17:33:51Z")

</div>

They will be on the Variables section on the bottom left side of the Blueprint screen which there should be an option to create a variable if you hover the plus sign. It will make a boolean and you can change it to any variables you want. If you want to set it, you easily drag it out and drop it on the event graph which gives you an option to Set or Get.

I do advise you to watch Unreal Engine 4 tutorials.

[Blueprint Essentials: Variables Overview | 01 | v4.2 Tutorial Series | Unreal Engine - YouTube](https://www.youtube.com/watch?v=zaVY5A0hqiI&list=PLZlv_N0_O1ga2b_ZaJoaR5dLHOFw4-MMl) Check this for learning more about Blueprints.

[https://www.youtube.com/user/VirtusEdu](https://www.youtube.com/user/VirtusEdu) Watch this guy’s channel, he is really good at making basic and base features to get you started in creating games.

---

<div class="post-metadata">

**Author:** ![Virtyjab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Virtyjab](https://forums.unrealengine.com/u/Virtyjab)\
**Post date:** [August 22, 2018, 5:44pm UTC](https://forums.unrealengine.com/t/how-to-make-player-crouch/432213/9 "2018-08-22T17:44:01Z")

</div>

Thanks for help
