Side Scroller camera doing wild swings

Hi, i’m setting a camera for a side scroller game, but the character moves like a beat n up, going up and down not just left and right, and i followed the steps on this answer ( to make the character start and stay on the left side of the screen when i’m pressing D, and stay on the right side when running to the left when A is pressed, the thing is, the camera is doing this wild swings whenever i go to any direction, left and right it goes with a wild camera swipe, up it goes to close to character, down (the character going in the direction of the camera) the camera moves away from the character, so, any ideas?