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
28
S
8
G
5
Posts: 75
Reputation: 4,285

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
19
G
167
Posts: 3,428
Reputation: 96,572

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
28
S
8
G
5
Posts: 75
Reputation: 4,285

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
19
G
167
Posts: 3,428
Reputation: 96,572

Post » Sun Feb 15, 2015 6:22 pm

Thanks blackhornet. I'll take a look at it.
Image
B
28
S
8
G
5
Posts: 75
Reputation: 4,285

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
226
S
31
G
14
Posts: 1,899
Reputation: 38,302


Return to How do I....?

Who is online

Users browsing this forum: LaurenceBedford, Tackla and 5 guests