How do I wait for a loop to complete?

Get help using Construct 2

Post » Tue May 19, 2015 5:26 pm

Hello, for some reason the event dummy.X != unit_dummy.X triggers even though the loop above isn't even finished yet:

Image

Can anyone tell me why? As far as I know it should wait. Thank you
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Tue May 19, 2015 5:49 pm

No, Wait is not blocking, it pushes the events below it (Move...) to run on a thread after the wait period. You should use a timer to managed timed events.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994

Post » Tue May 19, 2015 5:57 pm

I see. So the loop is finished but the actions within the loop are still running as a new thread :|
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Tue May 19, 2015 6:09 pm

Yes.
ImageImageImage
B
71
S
22
G
240
Posts: 3,734
Reputation: 133,994


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests