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.
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.