Lock camera axis on certain maps

Hello fellow makers,

I've searched for a long time in the forums and even found many camera controlling Plugins, but I'm really new to this and might have missed something, because I couldn't find any that explicitly states what I'm looking for.

I'm working at mapping right now and I just want my interior maps (mainly the smaller ones, such as NPC houses, Inns, Pubs and specific rooms) to lock a specific camera axis. For example, if the map is rather rectangular and fits horizontally in the screen, the Y axis would be locked, and the contrary would also apply.

Would appreciate any insight on this.
If you make your maps exactly the size of your game screen, the camera won't scroll. E.g., if you're using the default resolution of 816x624 and each tile is 48x48 pixels by default, you can set your map's width to 816/48= 17 and the height to 624/48 = 13.

Similarly, for a room that's very wide horizontally but not very tall, just set the map's height to 13 and the width can be anything - the camera will not scroll vertically but it will be able to scroll horizontally as your player moves.

Original thread: https://forums.rpgmakerweb.com/threads/lock-camera-axis-on-certain-maps.140352/