How do I read in X,Y data from an array

Get help using Construct 2

Post » Sun Feb 15, 2015 5:35 pm

I have an enemy attack pattern in an array. It has 2 dimensions holding the X and Y values. The enemy's X and Y positions have to be read in from the array. Do I have to use a loop? I've tried a "For Each" loop but I'm kinda lost. Grrr.. :D

Help please. Thanks.
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Feb 15, 2015 5:49 pm

Use For instead, then use two for the standard X,Y double loop.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Sun Feb 15, 2015 6:10 pm

What would the event look like? For "Wave" 0 to 32 then read out the X and then the 2nd event to read out the Y?
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Feb 15, 2015 6:20 pm

.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
240
Posts: 3,732
Reputation: 133,990

Post » Sun Feb 15, 2015 6:22 pm

Thanks blackhornet. I'll take a look at it.
Image
B
38
S
9
G
6
Posts: 77
Reputation: 5,221

Post » Sun Feb 15, 2015 8:25 pm

Nice one blackhornet I was thinking about how too but, no brain and wife said I been sitting on it hehehehehe
B
251
S
39
G
15
Posts: 1,964
Reputation: 40,721


Return to How do I....?

Who is online

Users browsing this forum: vutankhoa2015 and 31 guests