# Arrays for Beginners

17
• 234 favourites

### Attached Files

The following files have been attached to this tutorial:

.capx

.capx

.capx

### Stats

37,047 visits, 129,812 views

### Translations

• French
• Portugese (Brazillian)
• Russian
• Spanish

## 3-dimensional arrays

A 3-d array is harder to visualize (and draw...) but you might think of it like this:

Another way to look at arrays is: if a 1-d array is a list of cells then in a 2-d array you can imagine that each cell is another list of cells. In a 3-d array, each of those cells is yet another list of cells.

### Example use for a 3-dimensional array

If, in our previous example, we wanted to store some more information about the blocks eg. their angles, then we could put that in the z dimension.

We set the size of the array to 4,3,2. Now blocks.At(x,y,0) will store the animation for the block and blocks.At(x,y,1) will store it’s angle.

See the manual page for arrays.

See the Arrays section of the

How Do I? FAQ thread for some examples of how to use arrays.

.CAPX

.CAPX

.CAPX