Getting the value of array at X,Y

Get help using Construct 2

Post » Sun Nov 13, 2011 10:34 pm

I can't find any documentation about how to get the value of array Array at position X,Y.

What properties does an Array have? In the "loop and array tutorial", I only find CurrentX, CurrentY and CurrentValue properties, but what I'm looking for is sort of Array(x,y).value (so I can compare values outside current X and current Y).

Should I move indices with Array.CurrentX and Array.CurrentY and get Array.CurrentValue?
B
42
S
14
G
6
Posts: 132
Reputation: 9,090

Post » Sun Nov 13, 2011 11:59 pm

Array.at(X,Y,Z) (Y and Z are optionnal).

You can use the expression window (the half opaque window when you enter a value) for those type of "digging". The full list of available conditions/actions/expressions lies there with a line of documentation.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
279
S
104
G
86
Posts: 7,313
Reputation: 84,331


Return to How do I....?

Who is online

Users browsing this forum: bambang150, Yahoo [Bot] and 1 guest