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
35
S
8
G
5
Posts: 76
Reputation: 4,462

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
21
G
211
Posts: 3,614
Reputation: 119,147

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
35
S
8
G
5
Posts: 76
Reputation: 4,462

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
21
G
211
Posts: 3,614
Reputation: 119,147

Post » Sun Feb 15, 2015 6:22 pm

Thanks blackhornet. I'll take a look at it.
Image
B
35
S
8
G
5
Posts: 76
Reputation: 4,462

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
242
S
37
G
15
Posts: 1,930
Reputation: 39,918


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests