oldnoob
Member
Hello there,
I hope I can explain this so it makes sense.
In short: how do I make a room stop scrolling and my player walk to the edge of the screen?
I have a large room in which I intend to create a scrolling platformer. I hope to have two Viewports - Viewport 0 will be the whole game window including a border and GUI, and a smaller Viewport 1 as the actual scrolling play area contained within Viewport 0.
Viewport 0 is located in an area of the room the player can't access.
When my player nears the boundary of the left side of the room, the scrolling stops and the player walks the rest of the way to the edge of the room. this happens on each edge of the screen as it should. However, the far right of my room, the player is not allowed to go beyond pixel 1400, but beyond this is the layout for Viewport 0, so the scrolling and the player stop at the same time.
I'm not sure I've explained this adequately, so I hope this GIF shows what I mean.
I hope I can explain this so it makes sense.
In short: how do I make a room stop scrolling and my player walk to the edge of the screen?
I have a large room in which I intend to create a scrolling platformer. I hope to have two Viewports - Viewport 0 will be the whole game window including a border and GUI, and a smaller Viewport 1 as the actual scrolling play area contained within Viewport 0.
Viewport 0 is located in an area of the room the player can't access.
When my player nears the boundary of the left side of the room, the scrolling stops and the player walks the rest of the way to the edge of the room. this happens on each edge of the screen as it should. However, the far right of my room, the player is not allowed to go beyond pixel 1400, but beyond this is the layout for Viewport 0, so the scrolling and the player stop at the same time.
I'm not sure I've explained this adequately, so I hope this GIF shows what I mean.
Last edited: