Using a timeline to smooth transitions

To change the FOV smoothly, we will need to create an animation that shows a gradual change in the Actor over time. To do so, return to Event Graph of the FirstPersonCharacter Blueprint.

Press Alt and click on the Pressed output execution pin of the InputAction Zoom node to break the connection. Drag a new wire out from Pressed to empty grid space. Search for and select Add Timeline to add a timeline node. A timeline will allow us to change a value (such as the FOV on a camera) over a designated amount of time.

There are different ways of accomplishing animations in Unreal Engine 4. Timelines are perfect for simple value changes, such as the rotation of a door. For more complex, character-based, or cinematic ...

Get Blueprints Visual Scripting for Unreal Engine - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.