Multidimensional Array Help

Previous topic - Next topic

kamakazieturtle

I'm trying to do something like this, and I know I've done it before but i seem to have lost the source i had. So if someone knows the proper way to define an array like such it would be much appreciated. =D


DIM tile[15][15]
tile[0][0] = 2,tile[1][0] = 6,tile[2][0] = 6,tile[3][0] = 6,tile[4][0] = 6,tile[5][0] = 6,tile[6][0] = 6,tile[7][0] = 6,tile[8][0] = 6,tile[9][0] = 6,tile[10][0] = 6,tile[11][0] = 6,tile[12][0] = 6,tile[13][0] = 6,tile[14][0] = 3

Ian Price

#1
Just replace all the commas "," with semi-colons ";" or have each "tile[ x ] [y ]=XX" on a separate line.
I came. I saw. I played.

kamakazieturtle

Man I could have sworn I tried that, but anywho it totally worked and I officially love you more than a fat kid loves cake. And I know that love as well, thanks again. :good: