3 Questions

Question 1: I’m working on a first person game and I noticed that looking up or down causes character movement to be slower. The higher or lower I look, the slower I move forward and backward. However, moving left and right works fine. This is what my movement blueprints look like for each key:

Question 2: When I crouch, I should move slower, but actually I feel like I move faster. Also, I shouldn’t be crouching after holding down left shift while moving forward. Here is my blueprint for crouching:

Question 3:
How can I make it so that head bobbing (camera shake) begins when I start holding down left shift and stops as soon as I release it?

Thanks, but how did you get that “Get Control Rotation” block with X, Y and Z return values?

  1. In your case you are trying to go up or down when you look up or down. Of course you will move slower. Try something like this:

  1. Changing height itself will not affect your speed. Take a look at this video, it might help you. UE4 - Crouching (No Coding) - YouTube
  2. As for camera shake, e.g. you can make something like this.

This is just an example of how you can do it, because in this case camera moves oddly, you have to play with up/down and right/left movement to your liking. To stop camera shake I’d say the best option would be to set the Timeline’s Is Looping to false rather than Stop the Timeline, because you want to return your camera to the initial position when done sprinting.



Hope this helps.

Right click on the Return Value pin and select Split Struct Pin. You can do that to all complex pins. Quite handy.

Alright, I’ll try this in a bit.

for the first question I would use AddControllerPitchInput

for your movement problem try this

That worked, thanks again!

I’ve already fixed my movement problem the same way, but thanks anyway.

As about the crouch mechanic, I guess it’s the same speed as the default walking speed then, it just seemed faster for some reason. Anyway, I’ve already got a blueprint for crouching which is included in the main post. I know that I could also make crouching like in that video, but the problem is that it wouldn’t have a smooth transition. I tried that a long time ago, but it looks awful because there is no transition. With this blueprint it works great, but I’m not sure how to decrease my speed while crouched. I just want to add that function to my existing blueprint if possible, as well as pressing shift to stop crouching.

I can try to make head bobbing your way, but I’d rather use my current blueprint for camera shaking and just add an option to stop it once shift is released.