The Daily Click ::. Forums ::. Klik Coding Help ::. fastloop priorities?
 

Post Reply  Post Oekaki 
 

Posted By Message

Zi-Xiao



Registered
  29/07/2002
Points
  537

VIP Member
2nd March, 2007 at 15:36:37 -

What happens when you run a fastloop after another? Do they become nested loops or parallel loops?

So Loop 1 is running. Then from within Loop 1, I start Loop 2. Would loop 1 stop and then pick up when loop 2 finishes? Or would loop 1 continue to run AS loop 2 is running? Illustrated example below Loop 1 has 8 actions, Loop 2 has 4 actions:

First case:
Loop 1
Loop 1
Loop 1, Call Loop 2
Loop 2
Loop 2
Loop 2
Loop 2 ends
Loop 1
Loop 1
Loop 1
Loop 1
Loop 1 ends

Second case:
Loop 1
Loop 1
Loop 1, Call Loop 2
Loop 1, Loop 2
Loop 1, Loop 2
Loop 1, Loop 2
Loop 1, Loop 2 ends
Loop 1 ends

any input would be appreciated.

 
n/a

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
2nd March, 2007 at 15:42:57 -

If you call it within the first loop, it will become a nested loop.

 
This space is for rent

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
2nd March, 2007 at 16:07:08 -

Yesh. And if you run two loops on the same event, like this:

* [event]
- Start loop 1, 50 times
- Start loop 2, 50 times

Then it will first run loop 1, and then loop 2 after loop 1 has finished.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click