# Anyone can describe with array system?

Discussion and feedback on Construct 2

### » Tue Jul 01, 2014 10:59 am

What the different with X,XY,XYZ? and what the function each of them?
~Everyone can make GAMEs~
B
61
S
12
G
1
Posts: 416
Reputation: 6,047

### » Tue Jul 01, 2014 11:16 am

X is one-dimensional (a line), XY is two-dimensional (a square), and XYZ is three-dimensional (a cube). Arrays work by manipulating graphs with cells at each point, so XYZ is the format for telling Construct which cell to use in the form (12,68,37) or whatever.

B
57
S
15
G
11
Posts: 912
Reputation: 12,656

### » Tue Jul 01, 2014 11:18 am

@GeometriX ohh,thanks for describe it,is that same with a variabel maybe? :/
~Everyone can make GAMEs~
B
61
S
12
G
1
Posts: 416
Reputation: 6,047

### » Tue Jul 01, 2014 11:36 am

Sort of. Each cell can contain any data, much like a variable. The advantage of arrays, though, is that you have a mathematical way of calculating which cell you're manipulating, and can find associated information very easily. Think of 2D arrays as a spreadsheet of data, and imagine all the ways you could work with that data based on the concept of columns and rows.
B
57
S
15
G
11
Posts: 912
Reputation: 12,656

### » Tue Jul 01, 2014 11:47 am

GeometriX wrote:Sort of. Each cell can contain any data, much like a variable. The advantage of arrays, though, is that you have a mathematical way of calculating which cell you're manipulating, and can find associated information very easily. Think of 2D arrays as a spreadsheet of data, and imagine all the ways you could work with that data based on the concept of columns and rows.

ohh,i see.. thanks for describe it.
is there array for 3D? if yes,it will be very-very complex
~Everyone can make GAMEs~
B
61
S
12
G
1
Posts: 416
Reputation: 6,047

### » Tue Jul 01, 2014 1:03 pm

XYZ is considered a 3D array since it has 3 dimensions. For each XY position, there is a depth (Z) position that can contain different values.

You could get more//those informations in the manual article about arrays, the tutorial "Arrays for beginners" and check out the "Arrays" section in the how do I FAQ.
New to Construct ? Where to start

Please attach a capx to any help request or bug report !
Moderator
B
306
S
126
G
99
Posts: 7,385
Reputation: 73,846