Arkham-like running and crouching

I’m a beginning game developer, and I’m trying to create an over the shoulder game where the camera zooms out to face the character’s back directly whenever the player is sprinting or crouching and then returns to the original position when the button is released or when the player is holding the sprint button but not moving, similar to the Arkham games. I know it sounds like an easy thing to do but I just started making games two weeks ago, so if anyone could help me out I’d appreciate it greatly.

This is not so easy as you think. Let me give you a few tips. i’m sure you will be able to make your own function after that.

I guess you use something very closed to default 3D character in that case.

  1. Use should use FInterp To node to change your camera boom length smoothly.
  2. Store two variables for each state and use them as a target.
  3. Select float is helpful when you wanna your code be simple and clean.

Hope this is result you are looking for)

Could you send me a picture of the blueprints?