User Tag List

Results 1 to 3 of 3

Thread: Nested loops and get loopindex

  1. #1
    Clicker Fusion 2.5 MaciOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Shadoku's Avatar
    Join Date
    Jul 2006
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Nested loops and get loopindex

    I have two questions about loops. First of all, how does MMF2 react when you call a loop form inside another loops? For example, say i have a loop called "1" running, and then from one of the events in the loop i call another loop called "2", when will "2" actually be executed?
    This leads me to my second question; assuming that loop "2" is ran as soon as i call it, could i use LoopIndex("1") from inside loop "2"?

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nested loops and get loopindex

    Yes to all.

    The normal rule that "any actions after the "Start Loop" action in the same event will be broken" applies. Also, starting a loop from inside itself could have unexpected consequences.

    But starting one loop from inside another? Perfectly fine.

  3. #3
    Clicker Fusion 2.5 MaciOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Shadoku's Avatar
    Join Date
    Jul 2006
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Nested loops and get loopindex

    Thank you

Similar Threads

  1. Nested ForEach loops?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th March 2017, 05:05 PM
  2. Nested Foreach loops
    By Pixelthief in forum Fusion 2.5
    Replies: 6
    Last Post: 8th June 2014, 05:52 AM
  3. Nested Loops and cycling properly
    By rubes in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th January 2013, 04:48 PM
  4. homing torpedos & nested loops
    By Shabadage in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th January 2010, 03:23 PM
  5. nested loops
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th December 2006, 04:00 PM

Posting Permissions

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