On level 3 of my game I’m having problems with my camera following my player when I drop down the camera is a bit delayed and when i stand still the camera starts to shake I’ve checked grazers smooth camera example but the camera only follows the character smoothly on the X axis
Link to my game: https://flowlab.io/game/play/818307
Your camera on level 3 moves at a constant rate (velocity of 5). The smooth camera interpolates between the camera’s position and the players position so that the farther the way they are, the more the camera moves. This way the Camera will catch up very quickly, but slows down as it gets close to the player.
Your camera following logic is clever, but I think it will have some problems like this in practice. I suggest you use the smooth camera logic example. The is only on the x axis, but you can duplicate it for the y axis and it will work fine in both directions.