[r111] Recursive function calls

Bugs will be moved here once resolved.

Post » Mon Dec 03, 2012 10:10 am

Hey fellas,

the way functions work has definitively changed from r110 to r111. There's a recursive flood fill algorithm in my project picking labyrinth tiles, which connect to each other. So after updating to r111 it stopped working correctly.

But I was able to fix it by adding "Wait 0 seconds" before each recursive function call with tile UID as a parameter. I assume it has something to do with top level event and picking, but I don't understand the mechanism.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Mon Dec 03, 2012 6:26 pm

Please see how to report bugs, we usually cannot do anything about reports that are missing a .capx file. A quick check with a trivial recursive function to calculate factorial shows it's working in r111, so I need a .capx to see what isn't working. Moreover, it may be that your events relied on a bug that was actually fixed in r111; it might be worth double-checking all your events are really correct.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests