Is there any way to step backwards through an array
i.e for a 2d array
for x=0 to 2
for y=2 to 0
I know that in other basic languages you can use a step eveny like step -1.
Develop games in your browser. Powerful, performant & highly capable.
For x from 0 to (array.width-1)
Array.At((array.width-1)-loopindex) would go from back to front.
You don't have to do anything special. C3 figures out that if the start is higher than the end, it goes backwards.
I'm afraid it doesn't do it automatically Blackhornet.
For "x" from (Array.width-1) to 0 works just fine. I often process arrays backwards when I need to delete selected records.