This i am sure is pretty basic stuff, but something i don't yet know.
I want to run this loop while the condition is true... BUT..!
I want to continue on reading the next lines of code while the loop runs away on its merry dance so i can eventually
set the condition to false.
Code: Select all
put true into tTheRingGirlIsOn
repeat while tTheRingGirlIsOn = true with messages
put random(320) into randX
put random(200) into randy
move graphic "flash" to randX,randy without waiting
set the visible of graphic "flash" to true
wait 10 milliseconds
set the visible of graphic "flash" to false
wait random(300) milliseconds
end repeat
## so at the moment this line is never read, i am in a infinite loop
play specialFolderPath("engine") & "/boxing/sounds/clapping.wav"
wait 3 seconds
play specialFolderPath("engine") & "/boxing/sounds/BoxingBell.wav"
move group "ringgirl" from 154,252 to -70,252 in 30 ticks
put false into tTheRingGirlIsOn ## i need to get to here to break the loop