For example, I have an array the level spawns tile locations from, and I only want to show the tiles between scrollx-12 and scrollx+12. I only want to spawn them when they are within the boundry and I want to have all other tiles destroyed outside of the boundry
Currently I'm generating the entire level at layout start
SYS>Start of layout
>>>foreground_array>for each XY element
Sys:Creat object TILE at (background_array.CurY, background_array.CurX)
While the size of tiles, each one is a sprite. The game should be lightweight even with the entire level generated at start, but I would like to do anything I can to make it optimized.