How do I use the arrays

Get help using Construct 2

Post » Sat Oct 03, 2015 5:02 am

Any tuts on using arrays? I can see you can put data in them at x.y:value.
but if i want to set a variable from a certain slot in the array how do I do that?
i can see there is at, and X y, but I don't know what to type if I want to get data from a certain slot in the array, and maybe apply it to a variable.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458

Post » Sat Oct 03, 2015 6:40 am

You mean like this?
Image

at(x) can also be used at(x,y,z).
It just points to the x y z coords in the array.
The manual has some info, and it's not that different to normal programming arrays such as in C++.
B
42
S
14
G
3
Posts: 165
Reputation: 5,115

Post » Sat Oct 03, 2015 7:22 pm

Well, I know arrays in flash, it's much easier.
Thanks I will try that example.
B
10
S
4
G
3
Posts: 223
Reputation: 3,458


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests