How do I use For Each?

Get help using Construct 2

Post » Wed Mar 19, 2014 12:43 am

Yeah, else does no picking at all, nor does it remember or invert the picking from the event above it. I don't think you should use any of the else conditions in that screenshot at all. Instead of:

Event 1: X is less than player.x
Event 2: Else

Use:

Event 1: X is less than player.x
Event 2: X is greater or equal to player.x
Moderator
B
95
S
34
G
33
Posts: 3,006
Reputation: 27,874

Post » Wed Mar 19, 2014 4:46 am

@Arima - actually not using else breaks most of the events. This is what I mean - it only seems to work for certain events.
B
40
S
12
G
1
Posts: 533
Reputation: 4,149

Post » Wed Mar 19, 2014 5:21 am

Hmm, I'm not sure. I guess I would need a capx to investigate further.
Moderator
B
95
S
34
G
33
Posts: 3,006
Reputation: 27,874

Post » Wed Mar 19, 2014 7:19 am

Slight update - its seeming to be that booleans do not pick instances, either. I didn't realize, but the event "MassiveScorpion is on-screen" was actually doing the picking; this is why it seemed to be working when multiple enemies weren't on the screen. The second I got rid of that, all of the events under them no longer worked.

I'm totally confused, and not just in this specific instance, on instance picking in general.
B
40
S
12
G
1
Posts: 533
Reputation: 4,149

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, Jackriduk and 21 guests