(r86 beta) WHILE loops break when using local var

Bugs will be moved here once resolved.

Post » Sat Apr 14, 2012 9:23 pm

Here is the example:

http://dl.dropbox.com/u/73352718/whileloopbug.capx

The while loop that relies on the Jesus' opacity directly works just fine and he fades in as expected.

The while loop that relies on a local variable to do the same job fails to iterate even once, and the Krull Blade stays hidden.

I'm tempted to say that it's Jesus just kicking ass and making his loop work, but it's more likely a bug
B
7
Posts: 13
Reputation: 855

Post » Sat Apr 14, 2012 11:49 pm

Don't forget that local variables reset after each tick, it may have something to do with that..
B
28
S
2
Posts: 69
Reputation: 1,491

Post » Sun Apr 15, 2012 12:14 am

Ah, interesting bug. Fixed for next build, thanks. It turned out not to be to do with local variables, it was actually 'While' didn't work with system conditions after it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,554

Post » Sun Apr 15, 2012 1:46 am

wow, nice find @mrabear...
B
51
S
17
G
15
Posts: 1,029
Reputation: 26,314


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests