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
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

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
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests