Sure, you can have a Repeat Until in a Forever block. It will repeat until the stop condition happens...then the Forever Loop will try and get it to Repeat again but if the stop condition is still true, it won't succeed. This will continue to happen Forever
Of course, if the stop condition is true [corrected - used to say false] at the start...the Repeat Until loop will never run.
Last edited by Paddle2See (2009-06-21 12:00:46)
Offline
scmb1 wrote:
Um.. I don't get it. If the stop condition is true, the repeat wouldn't start, would it?
Nope. Set it to false when you start the game.
Offline
scmb1 wrote:
OK, now I'm confused. Paddle2See says the stop condition must be true to start the repeat but halogameaccount says false. I think it should be false, but it isn't working that way.
You (and halogameaccount) are right...the condition must be False for the "Repeat Until" to start...sorry, I made a mistake in my earlier post. If you are having trouble with your scripts, try putting a short wait (maybe 0.5 seconds) before you do any tests on the stop condition. That will give the stop condition time to initalize properly before anything tests on it. If that doesn't fix the problem, maybe you can share the project and we can take a look at it
Offline