From BlitzMax Arrays to Monkey arrays?

Monkey Forums/Monkey Programming/From BlitzMax Arrays to Monkey arrays?

Amon(Posted 2011) [#1]
Hi! Can anybody provide an example of how I could achieve in Monkey the usage of 2D Arrays like I would have used them in BlitzMax?

I'm a little new to using arrays this way and just need an example or two with an explanation. To give you an idea of what I want it's basically when setting up an Array in Max for a tilemap, to find a similar or the Monkey way of doing it.

Ta for any help you guys can provide!


Tri|Ga|De(Posted 2011) [#2]
Maybe this can help


Amon(Posted 2011) [#3]
Thanks! That's what I needed.


John Galt(Posted 2011) [#4]
...Or use a 1D array and index appropriately. There is an example of this in the Monkenstein code example.