# Velocity-depending camera (Third person)

**URL:** <https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 15, 2023, 2:38am UTC](https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350 "2023-08-15T02:38:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![membranasozial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@membranasozial](https://forums.unrealengine.com/u/membranasozial)\
**Post date:** [August 15, 2023, 2:38am UTC](https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350/1 "2023-08-15T02:38:31Z")

</div>

Hi everyone!

I’ve done a sprint system that allows the player to swap on walking normal and walking slow by pressing shift. When you walk slow, the camera zooms in a little bit. If you press shift twice in a row, the character starts sprinting and the camera zooms out.

The zoom in animation is 0.5s long, and the zoom out lasts 1 second. My problem is that both zoom animations overlap each other if you change fastly between that speed modes (you can see what I mean in the attached video).

I guess that I could solve that if the zooms only took places once the camera is in the original position, but I can’t figure out how to code that. If anyone knows how to achieve that I’d be very grateful!

Additionally, I want to blur a bit the character when the zoom in takes place, so the player can focus better on the enviroment, but I didn’t find a way to do that neither. A little help with that would be awesome too!

Down here is the video I mentioned above and the blueprints for the different velocities system. It includes other features as stopping the sprinting when player speed = 0. The BP may be too much complex for what it is, but I’m a newbie and that’s the only way I managed to came out with all that ideas.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/d/add47e3fab74d7370e28df304465af4de7b22745.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/d/add47e3fab74d7370e28df304465af4de7b22745.mp4)
  
 ![Sprint-BP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/9/8e9ed9efdd2159c2667d89ee9a88b86bccec21a9.png)

Take care everyone and thanks in advance!

/Óscar.

---

<div class="post-metadata">

**Author:** ![membranasozial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@membranasozial](https://forums.unrealengine.com/u/membranasozial)\
**Post date:** [August 15, 2023, 4:12am UTC](https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350/2 "2023-08-15T04:12:35Z")

</div>

I forgot to upload this part of the BP. These are the two types of zoom I have:

 ![imagen_2023-08-15_061206324](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/b/c9b1a93a740fb7fe4a75da16a45a0b3bfeb2395e.png)

---

<div class="post-metadata">

**Author:** ![AreWeGaming](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arewegaming/32/1174860_2.png) [@AreWeGaming](https://forums.unrealengine.com/u/AreWeGaming)\
**Post date:** [August 15, 2023, 4:23am UTC](https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350/3 "2023-08-15T04:23:32Z")

</div>

Its the Flip Flop you need to run conditions to make your own so it checks again if you’re going fast or not

---

<div class="post-metadata">

**Author:** ![membranasozial](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@membranasozial](https://forums.unrealengine.com/u/membranasozial)\
**Post date:** [August 15, 2023, 5:41am UTC](https://forums.unrealengine.com/t/velocity-depending-camera-third-person/1261350/4 "2023-08-15T05:41:41Z")

</div>

Thank you! I still need to figure out a few things but it’s getting a lot better working on that Flip Flop!
