Possible to focus camera on one axis only?

I have a level for my game where it would be ideal that the camera is locked from moving up and down, but still follows the player horizontally. Is there an easy way to do this?
Is your map's height bigger than your screen height?
Yes, but i would like to keep the map the way it is.
SumRdmnDde has a camera core plugin which allows you to focus the camera on a particular event. You could create an event that follows the player on the x position and make the camera focus on that event.
You can try QCAMERA.js to!
It do a great work and its simple to use
Hmm, interesting idea. I'll give those a try! thanks to both of you

Original thread: https://forums.rpgmakerweb.com/threads/possible-to-focus-camera-on-one-axis-only.102698/