Make Camera and Environment follow player smoothly and also zoomable
Hello, I am making a 2d side scroller car racing game. The Player is a car that moves on a 2d terrain already created. The Camera follows the Player. I also wanted to created more dept by making the background follow y-axis of player so that the background doesn't look like a plain picture. The effect I am wanting to replicate is that when the player jumps the camera just zoom's out. I am using a prespective camera so it zooms out by moving it slightly away (more) from the Player. The effect isn't smooht. The platform is using 2d edge collider. The movement gave me motion sickness and I just don't know what I should be doing to make this follow nicely. I have tried using smooth damp that gave me spring effect which isn't needed here. I used Lerp which just doesn't work at all, It's dang slow and when I make it fast it just same undesirable behaviour. The MoveTowards works a bit but not quite really. The smoothness is just not what I want.
For reference, my game is pretty much same like the I hate zombies. check video https://youtu.be/YQZoBC1hVyk?t=31s
Your answer
Follow this Question
Related Questions
Jittery background when implementing parallax effect 1 Answer
Why wont my if work ? (C#) 0 Answers
2D scrolling background 0 Answers
Why does only one of my instantiated scripts work? 2 Answers
2D Parallax with zoom 0 Answers