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
43
S
9
G
6
Posts: 77
Reputation: 5,345

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
258
Posts: 3,792
Reputation: 143,200

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
43
S
9
G
6
Posts: 77
Reputation: 5,345

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
258
Posts: 3,792
Reputation: 143,200

Post » Sun Feb 15, 2015 6:22 pm

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

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
257
S
43
G
15
Posts: 1,992
Reputation: 41,535


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests