Break nested loops

Get help using Construct 2

Post » Wed Oct 30, 2013 8:58 am

For example, I've the following pseudocode:

while True:
    for boo in boos:
        break # Used 'Stop loop' in Construct 2
    break # How do I insert action(s) like 'Stop loop' after sub-event?

Is there anyway to execute action after sub-event processed?
B
23
S
9
G
3
Posts: 114
Reputation: 3,794

Post » Wed Oct 30, 2013 1:52 pm

Select the while True block and right click -> add blank sub event (Or press B) then you can add any actions you want to run after the for loop in there
B
46
S
14
G
7
Posts: 603
Reputation: 8,116

Post » Fri Nov 01, 2013 9:29 am

Nice trick!
B
23
S
9
G
3
Posts: 114
Reputation: 3,794


Return to How do I....?

Who is online

Users browsing this forum: evillair, plinkie, YoHoho and 10 guests