Wait in nested loop

Bugs will be moved here once resolved.

Post » Wed Oct 17, 2012 5:56 pm

r107 win7 64bit

Problem: Putting a wait statement in a nested loop causes the loopindexes to all be the final loop number following the wait. As if the loops finished before the wait was over, but it still seems to repeat the correct number of times.

In the capx, run once to see the numbers show correctly, then enable the wait statement, and see all the numbers = 4

https://dl.dropbox.com/u/85412219/forumposts/WaitInNest.capx

doesn't seem to matter what the wait is either, "Wait 0 seconds" has the same affect.
B
200
S
51
G
30
Posts: 897
Reputation: 36,496

Post » Wed Oct 17, 2012 6:22 pm

This is by design, the loop will have finished before any of the actions after the 'Wait' run. See here.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 8 guests