Condition inside of a Loop

Get help using Construct 2

Post » Tue May 03, 2016 4:46 am

so quick question, it it possible to add condition inside of loop so they run every loop iteration? for example if i had

repeat(20) => Set Variable X = loopindex * random(0, 5)

and then added a sub event

System compare Variable X > 0 => create object "anything"

since the create is in a sub event will that check happen every loop iteration or will it happen once after the loop has ended?

and then how can i make the check happen every loop iteration?
B
47
S
26
G
2
Posts: 31
Reputation: 4,937

Post » Tue May 03, 2016 5:11 am

After some testing with logging,i found my answer, yes the loop repeats everything in the sub event, but what ever is picked in the room also gets picked in the sub event
B
47
S
26
G
2
Posts: 31
Reputation: 4,937


Return to How do I....?

Who is online

Users browsing this forum: newt and 10 guests