How to create a 2 d array?
Such as the:s[12][12].help me.
How to create a 2 d array?
Moderator: Benj
-
- Posts: 438
- Joined: Mon Aug 29, 2011 12:26 am
- Location: arizona
- Has thanked: 175 times
- Been thanked: 173 times
Re: How to create a 2 d array?
flowcode doesn't support these, but a 2d array is like a checker board which is an array of arrays, each row is an individual array, could do this with math and have one lut table or array of 144 and referance them with math likeHow to create a 2 d array?
Such as the:s[12][12]
if you wanted to find [2],[4] the code would be ....position = (12*row)+char
to find the 'Y' below it would be this in math (12*2)+4
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,Y,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
0,1,2,3,4,5,6,7,8,9,10,11
does that make sense, if i'm off on this one please correct me
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: How to create a 2 d array?
Hi nnnnff
This same topic was discussed here:
http://fwww.matrixmultimedia.com/mmforu ... 60&#p35960
This same topic was discussed here:
http://fwww.matrixmultimedia.com/mmforu ... 60&#p35960
Martin