>
>
> Every tick, move all the tiles down by ScrollRate * dt, or maybe give them all the bullet behavior, moving down.
>
> Pick the TIle with the lowest Y value. if that Y value is higher than zero, use a loop to create a new row of tiles at Yvalue-32 and randomly assign them the same way you already do.
> when a tile has Y > layout height, destroy it.
>
Why should i give them a bullet behavior? Doesnt that mean that the tiles would move down all the time?
How dould i pick the lowest value and create a loop? I know what you mean but cant figure out how to create this event.
Ah I thought tiles moving down all the time was what you want?
I thought there was a way to pick instances by the lowest/highest expression, but apparantly that's only for instance varialbes. What you can do is use the sprite Event Compare X or Compare Y to pick the tiles which are off the screen in a particular direction, and use pick nearest/furthest to see if the outermost is close enough for you to spawn a new row of tiles.
If you do intend scrolling to be multidirectional and follow the player instead of constantly scrolling, it would be best if you kept using the array for not only level generation, but storage as well. RexRainbow has a plugin that handles grids rather well; I am using it for my RPG. Even though you won't have the player moving on the board, you might look into his LogicMask, which automatically restricts the set of active tiles to the ones on the screen.