I admit I got the X and Y coordinates backwards for a small bit.
X0Y0, X1Y0, X2Y0
X0Y1, X1Y1, X2Y1
X0Y2, X1Y2, X2Y2
The formula loopindex("x") + loopindex("y") * 3 for the array value does work. The 3 is in fact the Width of the TileMap. By multiplying the Y by 3 it is correctly placing the values of the array in ascending order.
It sets the values of the X to
and the values of the Y to
Any number multiplied by 0 is 0. So that explains how the top 3 tiles can stay 0,1,2 . When X and Y is added together it creates:
Thanks, the example you gave was very useful.
I just figured I would explain in case more people need to know.
I forgot you could view the Array Values in the Debugger as well.....