Set up complex Camera2D boundaries beyond limits

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By headcleaner

Standard-issue top-down ¾ RPG. What I want is to be able to draw, either using a tile map or (better) a polygon defining where the camera is and is not allowed to traverse.

I have multiple scenes in mind where the camera starts off constrained, with the player character (for example) lower than they ought to be, before moving into a larger area where the camera slopes upward and rights itself. Using different scenes for different camera angles seems so rudimentary.

I think you’re describing a dolly camera here? Seems like the ideal use case for a PathFollow node and lerp the follow path position. You could trigger this based on collision areas.

spaceyjase | 2022-01-04 16:34