How array is scanned trough on "for each xyz" exactly?

Discussion and feedback on Construct 2

Post » Thu Nov 05, 2015 11:16 am

Hi there, I have a question about array checking. If I remember correctly on xy plane it goes by column: x1 -y1,y2,y3, x2-y1y2y3 etc. But how does it check when z is included, because this gives me most trouble? How exactly those loops work? Thanks
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099

Post » Thu Nov 05, 2015 1:14 pm

You can answer your own question by using the Browser to log each iteration:
Image

Hit F12 in the browser and you can see exactly what the pattern is.
ImageImageImage
B
71
S
21
G
231
Posts: 3,689
Reputation: 129,354


Return to Construct 2 General

Who is online

Users browsing this forum: tumira, Yahoo [Bot] and 7 guests