How to gradually increase/decrease camera's Ortho scale?

*2D Platformer

*Beginner with zero coding background

I want the jump button to gradually scale the Camera’s Ortho-width view between 2 values rather than instantly switching between them as I press / release the jump button.

This is what I’ve done so far:

Any help would be appreciated.

Hello,

I had this same challenge when attempting to add a zooming feature to a 2D project. My solution was to get the current “Ortho” float value (OrthoWidth) and then add\subtract it from a set float value. That exposed value allows me to change the increments that my zoom moves in (smaller for smooth zoom and less for big jumps). That in turn showed me that I need to add some constraint otherwise I could zoom in or out forever. I then added a comparison for both edges of my Zoom (Out and In limits). I have one check to limit how close the zoom will go and another for how far out it can go. The attached screen shot shows the basic Blueprint. I now can add other events that could instigate a zooming effect by extending this Blueprint.

Good luck - Perk