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
39
S
11
G
5
Posts: 132
Reputation: 8,228

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
247
S
85
G
40
Posts: 7,000
Reputation: 57,795


Return to How do I....?

Who is online

Users browsing this forum: Renfd, supreme676 and 30 guests