Hi, I'm creating a 2d platformer with different frames for each part of the game, however, the transition does not look great because the camera reaches the edge of the frame before the player and the parallax effect stops at this point, whilst the player is moving towards the edge of the screen. Anyone knows how to set up a 2d Cinemachine camera, which follows the player, so that the player is at the edge of the camera at the point that the camera reaches the edge of the confiner. Grateful for any help. Thanks
In case others have the same issue, I came up with a sort of solution. It is rather inelegant, but appears to do the trick. As the player moves across the screen the m_screenX of the Cinemachine Virtual Camera framing transposer is adjusted at runtime relative to the player movement. I am sure that there are better ways of doing this, possibly without any code, but I could not get it to work by adjusting the settings.
The Cinemachine Confiner is what you are looking for. There is even a Official tutorial how to use it