Hi,
I just started using unity like 2 weeks ago and I have been mostly playing around with it to see how it works and whatnot. Now I want to create something worthwhile with it (mostly for learning purposes).
So I am working on a 2D platformer and I have been using Cinemachine for cameras. Now I want to create a auto scrolling level but I am having trouble setting up Cinemachine to do that. I have looked around on Google but I couldn’t find a suitable answer regarding this. Most of them suggest using transform.translate but I don’t know how I am to apply that to a Virtual Camera.
Basically what I want is for the camera to auto scroll on x-axis while still following the vertical movements of the player. I don’t know how to approach this so any help would be appreciated.
Thnx.
Edit: So I did manage to create an autoscrolling camera by having cinemachine follow a placebo object that follows a trail I set up however I still don’t know how to make the camera follow the player vertically too.
Edit (2): The fix I found was turning off cinemachine brain at specific triggers that enable the auto scrolling sections and manipulate the main camera through script.