At least to me, using the Array object would make things clearer. Arrays have the For Each element condition you can use to cycle through them and do whatever you like. You can check the values with the Array.CurrentX and CurrentY expressions.
So to make your map filled with walls, you'd use something like this:
> For Each element -> Array: Set index (Array.CurrentX, Array.CurrentY) to 1
[/code:13p4ykug]
And to draw your tiles:
[code:13p4ykug]
For Each element
-> Value at (Array.CurrentX, Array.CurrentY) equal to 1
-> -> Create Wall at (Array.CurrentX * 32, Array.CurrentY * 32)
[/code:13p4ykug]
Note that Arrays range from 1 to whatever you specify in their properties.
So there's no element [0,0] etc.
Edit: Made a lil' example: [url]http://files.getdropbox.com/u/1496418/MapArray.cap[/url]
I've actually already gone ahead and done that, although I've run into a problem. I seem to have a memory leak or infinite loop because it starts using up 500+mb of ram fairly quickly. Does the For Each event continue to run over and over?
Also I tried looking at your example, but it said that it was made using a newer version (despite the fact I have the newest stable release).
Edit: Using the Run Once condition for the For Each element condition seems to have stopped the memory usage from climbing leading me to believe my speculation about it continually running is correct. However I still notice that, despite the program isn't doing anything particular, CPU usage is 40% (E8200, 2.66Ghz Core2Duo) and it is using about 130mb of RAM (this is steady now that I have fixed the previous issue). These numbers seem very high considering it is idling.
Edit2: *image removed, I changed the Sampling from Linear to Point and this dropped CPU usage to 5-6% and only 13mb of ram. When I change it back to Linear is uses a constant 40-50% CPU and 130mb of ram, again, despite the program not doing anything? This seems very odd. GPU is an 8800GT.