Velocity-depending camera (Third person)

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.


Take care everyone and thanks in advance!

/Óscar.

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

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

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