How can I tell when a loop is completed?
Hey, folks!
How would I write a conditional expression to determine whether a loop is still in progress? I tried writing a "compare two general values" statement, but once I specified the loop name, I couldn't figure out how to specify whether it was still active or not.
Thank you!
RGBreality
Re: How can I tell when a loop is completed?
No normal events will run while a fastloop is running. As soon as the loop finnishes the game and app will move on as usual. So if your game responds (updates the screen or whatever) then your loop isn't running at least ;)
Remember fastloops run quite fast so you might not even notice that they even started running.
Re: How can I tell when a loop is completed?
So basically, if you have the "Start loop" action in a list of actions, none of the actions after "Start loop" will take place until the loop has finished.
Re: How can I tell when a loop is completed?
If you're still curious as to whether or not the loop is running though, you could make an object whose animation changes whenever the loop is active.
Re: How can I tell when a loop is completed?
Hmmm... I see...
So, how would I set up one loop immediately after another?
RGBreality
Re: How can I tell when a loop is completed?
Start Loop1;
Start Loop2;
etc.
Re: How can I tell when a loop is completed?
Quote:
Originally Posted by Na
If you're still curious as to whether or not the loop is running though, you could make an object whose animation changes whenever the loop is active.
Won't work. The loop will finish in between the time one frame draws and the next.
Re: How can I tell when a loop is completed?
So, I must be confused about something... Let me ask you this:
1.) How do I define a loop?
2.) How do I start it?
Thank you!
RGBreality
Re: How can I tell when a loop is completed?
If you do this:
+ Start of frame:
-> Start loop [color:#006600]"a"[/color] for 3 times
-> Start loop [color:#006600]"b"[/color] for 4 times
+ On loop [color:#006600]"a"[/color]
-> Add line [color:#006600]"Hello there"[/color] to 'List box'
+ On loop [color:#006600]"b"[/color]
-> Add line [color:#006600]"Golly!"[/color] to 'List box'
and run that, you will immedeatly at the start of the frame see this in the list box:
Code:
Hello there
Hello there
Hello there
Golly!
Golly!
Golly!
Golly!