How do i make camera move like in flappy bird, but let character move in 4 directions?

The title says it. I’m trying to make a mobile game with flying character who is moving horizontaly from left to right. I managed to make so my character can move infinitely and camera is pinned at him, but this is not really what I want since I want to control character movement.