User Tag List

Results 1 to 10 of 10

Thread: Just a fastloop question.

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Just a fastloop question.

    Fastloops repeat a single condtion and move on.
    But is it possible somehow ( some extension maybe )
    to do a list of condtions in order in the same loop?

    Like if a loop starts on condtion 5
    does condtion 6,7 and 8
    then goes back to 5 again.

    until the fastloop is over and the runtime countinues futher down the event editor like normal.

    Is it possible?


  2. #2
    No Products Registered

    Join Date
    Jan 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    Just put the on loop condition on each of the conditions you want the fastloop to run.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    Quote Originally Posted by easyname
    Just put the on loop condition on each of the conditions you want the fastloop to run.
    I know, it's kinda hard to explain. But I want serval condtions in one big loop.

    Ok, how about this: You know the basic custom movement of fastloops and four sensores. Imagen there's a coin for you to pick up. Well, if you are real fast you kinda "warp" past it beacuse the condtion that makes you pick it don't gets true. That's why I would include that condtion in the same loop that makes you move.

    Like a list of condtions that repeats from start to end in a loop.

  4. #4
    No Products Registered

    Join Date
    Jan 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    You can put the on loop condition on multiple conditions so that it runs them all : /

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    Thats how loops already work. Maybe grab some examples from the file archive and see for yourself.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    That simple? : /
    I thought fastloops repeated a single condtion before moving on.
    My bad.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    When you run a loop, for each iteration of the loop, it will read through every single "On Loop" command, and if the string matches the loop name, it will use that event. So you can have as many conditions in a single loop as you want.

    If you have 3 events that you want to repeat inside of a loop before going on, you can actually run a loop *inside of* a loop. When you do this, that whole loop will execute, then it will return to where it was in the outer loop.


    When you run a fast loop in MMF2, it doesn't matter where in your program the lines of code for your 'on loop' conditions are. The program will immediately run them all and skip all non-loop commands between them (it still reads top to bottom). So if you call loop "HelloWorld" in the top of your event list, but all the "On Loop 'HelloWorld'" events are in the bottom, they will all be run before the loop continues on.


    The side effect of this is that when MMF2 runs *any* loop, it will read *all* loops, but only run the relevant ones. That means that if you have 50 different loops will tons of conditions, the program will have to take the time to read through every single event N times for each loop. A loop that only had 5 events and only ran 20 times might have 30000 events to check instead of 100.


    If your program ever experiences slowdown due to this, theres a simple fix; you can put your "On Loop" events inside of an event group. Then, whenever you run the loop, you open the event group, and when it finishes, you close it again. So instead of writing

    "Run Loop X for 100 times"

    You write:

    "Open group "Loop X Events""
    "Run Loop X for 100 times"
    "Close group "Loop X Events""

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2007
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    Great, thanks.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    May 2011
    Location
    Pennsylvania, USA
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    Three questions.

    1. If I have a double nested loop, is it more code-efficient to place the inner loop in its own activation group as outlined in PixelThief's post(2 above mine)?

    2. Second, this is more of a statement that I want verification on. Is it true that I must deactivate the groups containing extraneous loop events so that when a specific "on loop" statement is executed only loops contained in "activated" groups are checked?

    3. If I have a fastloop named "MyLoop" and have on loop events placed in two separate groups: "Group1" and "Group2." Let's say both groups start deactivated. I activate "Group1" and execute "MyLoop." It does NOT execute on loop statements in "Group2"... correct? And it is okay for me to reuse the loop name "MyLoop" as long as I handle group activation/deactivation correctly?

    Hopefully someone knows these answers... thanks!

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Just a fastloop question.

    1 & 2. Yes, the group active/inactive states help MFM2 to more quickly select the correct On Loop events, rather than going through them all only to use a select few.
    3. Yes, that is the reason 1 & 2 are more efficient. You can reuse names however you like, just don't make it confusing for yourself
    Working as fast as I can on Fusion 3

Similar Threads

  1. Platform Fastloop Question
    By amaire13 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd October 2012, 08:25 AM
  2. nested fastloop question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 7th May 2009, 04:21 PM
  3. fastloop question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th February 2009, 11:26 PM
  4. fastloop order of operation question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th February 2009, 12:08 AM
  5. Fastloop Spread Value question
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 6th June 2008, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •