So my current problem is that I am trying to generate terrain for a 2D scroller game, and have done the method of reading a txt file filled with X's and O's and figuring out where to place the terrain based on it's location in the file. However, I have run into a problem where if the terrain is generated outside of the frame, it instantly gets moved to the edges of the frame. I am just curious what is causing this and any possible ways to work around it.

