Side scroller camera but character can move towards and away from the camera?

So i want to make a beat em up but don’t know how to approach the camera in this way! any ideas?