What expression would I use during "for each XY element" to set a 10x28 array to...
...and so on?
I had this working before but no longer have the .capx. It was really simple, too! Just can't think of it atm -.-;;
for from 0 to Array.width
--for from 0 to array.height
Wrote this from my smartphone so hope it�s right.
There are multiple ways to do this. Here is one way:
For each XY Element
Set Value at (Array.CurX, Array.CurY) to (Array.CurY * Array.Width + Array.CurX)
Develop games in your browser. Powerful, performant & highly capable.
Another way :
for i = 0 to Array.Width * Array.Height - 1
--Set Array.At(i % Array.Width, int(i/Array.Width)) = i