break "for each" loops

New releases and general discussions.

Post » Mon Jun 15, 2009 2:53 am

the break loop action doesn't work on "for for each objects",
it was gonna be my solution to this thread (the second part of his question)
viewtopic.php?f=3&t=3947
could have "for each ordered by" "zorder" "descending
but you can't break out after the first one
Spriter Dev
B
96
S
21
G
12
Posts: 3,256
Reputation: 16,813

Post » Mon Jun 15, 2009 3:03 pm

It's a good idea, but in the meantime you can fake a break by something like:

+ For each Sprite
+ Global 'break' = 0
-> Actions
-> To break: set 'break' to 1
Scirra Founder
B
378
S
220
G
84
Posts: 23,871
Reputation: 188,157


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests