Need help with a one-way scrolling room

I'm working on a game and for a certain area, I'm trying to make an endless hallway that occasionally changes slightly each loop and where you can only go one way, but I have no idea how to make the camera scroll in only one direction.

I have no idea how I would go about this and haven't found any scripts that would help, but I'm trying to make it so that the camera will only move to the right, so you can't walk backwards to the left, kind of like old Mario games. I want the player to be able to walk around in the space the camera is in, but the camera can only move right, and as soon as it does the player can't walk back to the left beyond where the camera shows. The point of the area is to have the player be sometimes put into different variants of the same room, so preferably the solution would work over multiple rooms too. I'm not using any camera scripts currently.

Sorry if I was unclear about anything or posted this in the wrong area, this is my first time actually making a post on this website instead of reading other people's posts. If I was unclear, I'll do my best to explain better.
So you've probably tried to use the Map Properties: Scroll Type: Horizontal Loop, but to implement the one directional or map changing...
I'd probably go about this in a very round about way so someone else probably has a better idea. But here goes,
1. Ensure Horizontal Loop is set.
2. Override the Players controls
3. Keep track of the players X coordinate for both 'free' and 'loop' movement
4. Spawn Events or Tileswap as the loop variable increases (I assume you've already got this covered, otherwise I can suggest some scripts I know that can accomplish this)
Clip1.JPG

Note: The Scroll Map Right + Move Left results in a small stutter. But otherwise this works as requested.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-one-way-scrolling-room.179699/