create a camera zoom out with a trigger box for side scoller game with U5.6 Sidecrolling template

hey!
I want to create a basic camera zoom out with a trigger box for a 2.5d side scroller game with U5.6 Sidecrolling template.

Like, the character run, enter the trigger and the camera slowly zoom out to show the beautiful area. thats it .

Can’t find any tutorial on it…

I know that I have to change the value: Current zoom of the BP_SideScrollingCameraManager…

Probably something like on actor begin overlap- cast to BP_SideScrollingCharacter…
then change the camera value…

I can’t find the way to ‘blueprint’ that !

Thanks for your help :slight_smile:

Hey @Max_Lajeunesse!

Inside your trigger box BP, implement this blueprint code:

To add a float track, double click on the timeline node, and inside hit the Track button with a green plus (+) icon on it and select the Float Track option like this:

Screenshot 2025-10-02 172858

You can add new keys to your float track by right clicking on the graph and selecting the Add Key option. Here’s an example on how you can place the keys:

Tho you can customize it by adjusting the length or you can also have a curve like this:

To do that, select your keys and then right click on one of them instead of right clicking on the graph, and hit the Break option. You can also adjust the tangents of the individual keys.

Oh and also, don’t forget to assign a reference to our Camera variable on Begin Play. Also note that which component of our camera’s relative location to update depends on your orientation, for example it might be Y in your case.


Note for those who would like to implement the same feature to a 3D game, instead of working on the camera, adjust the length of the spring arm.

Hope this helps! :innocent: