Ok, I'm making a level editor using arrays and easy grid textension. Basically each xy of the array is a tile in my map of 30x20 = 600 possible tiles in the level. The value stored in the array determines what tile I draw.
I can store and save the array fine.
What I'm having problem is parsing through the data to draw the correct tile. I'm using fast loops to parse through the array to draw the map.
Just for testing I only parse through the first row. Y=0, X=0-29, here is the following code.
Start of frame - Start loop "Fill" DimX("my array") times
On Loop "Fill"
1. I set a pointer(graphic arrow) to the current location of x,y
2. Set X dimension Index to LoopIndex( "Fill" ) + 1
3. Create my tile relative 0,0 to the pointer
I need to set it up so it will only draw the tile when the X,Y value of the arrow = 1(a specific type of tile)
I tried adding the following condition below "On Loop 'Fill'"
ValueatXY("my array",index x("my array"),index y ("my array")) = 1
and the result of this is that nothing is drawn.
I dunno if what I typed above makes any sense? heh.