Anyone can describe with array system?

Discussion and feedback on Construct 2

Post » 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
57
S
12
G
1
Posts: 414
Reputation: 5,936

Post » 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.

More info at Wikipedia: http://en.wikipedia.org/wiki/Array_data_structure
B
57
S
15
G
11
Posts: 912
Reputation: 12,626

Post » 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
57
S
12
G
1
Posts: 414
Reputation: 5,936

Post » 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,626

Post » 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 :lol:
~Everyone can make GAMEs~
B
57
S
12
G
1
Posts: 414
Reputation: 5,936

Post » 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

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
293
S
117
G
96
Posts: 7,310
Reputation: 71,069


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests