Alright.. I am trying to do this:
code:
var array = [];
for(var x = 0; x < 18; x++){
array[x] = [];
for(var y = 0; y < 18; y++){
array[x][y] = ["Data"];
}
}
But I am having trouble with this in Construct2!
I am trying to do a FOR LOOP inside another FOR LOOP, y'know.. Like when you spawn a grid of tiles.
But the trouble right now is that I need to declare X, Y and Z positions to set the Data of an Array. But putting the loop names does not do the trick.
<img src="http://i1294.photobucket.com/albums/b603/oliverschoening/arrayC2_zpsf0b9be27.png" border="0" />