The camera for Echoes of Marigold, a 2D Metroidvania built in Unity. The player moves vertically as much as horizontally, so the camera has to follow both without losing the player or the room around them.
What it does
Built on Unity’s Cinemachine:
- Dynamic Y-axis damping. Vertical follow is damped dynamically, so the camera keeps up through jumps and long falls.
- Panning on triggers. Trigger zones in a room pan the camera to a set offset, for example to show a ledge or a hidden route.
- Directional swaps. When the player turns around, the camera swaps to lead the other way without a hard cut.
Editor setup
I also wrote a custom Unity Editor setup so the camera zones were easy to configure.