[quote="cow_trix":383tebaq]I'm trying to get Construct to generate a grid of tiles, with a predefined width and height of the grid. I also need to be able to give the squares a semi-random private variable that will determine what kind of 'terrain' that they will be - dirt, stone, air, etc.
I've thought about using an array or loops to do this but I have no idea how they work. Anyone have any idea how to do this?[/quote:383tebaq]
An array would be exactly what you would want to use. And you should probably look into the Perlin Noise plugin
as well, as it's great for creating random terrain and things alike.
There's some stuff
about that on the forums. But for simplicity's sake I just created a very basic example, which uses an array and the perlin noise plugin to create a crude map from sprites. It's only 2 events!