User Tag List

Results 1 to 6 of 6

Thread: Creating multiple objects in a fastloop question..

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Creating multiple objects in a fastloop question..

    I have 3 questions about fastloops:

    1. If I run a fastloop multiple times (lets say 3 times) and create 3 different objects within each loop, is there a special way I need to code the "Create" actions to end up with 9 objects when the loop ends? I have been trying to spawn 3 objects at the position of 3 different spawn objects. For some reason, I only end up with 5 total objects.

    2. I am adding each object to the debugger as it is created, but only the objects created in the first loop seem to get added. Is there a limitation to using debugger actions in a fastloop?

    3. Is it assumed a fastloop is stopped once the last "On loop" condition is passed in the game loop? Or do you need to explicitly call "Stop Loop"? I thought stop loop was only used for stopping a loop early if you only want part of a loop to run under certain conditions.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating multiple objects in a fastloop question..

    1: No, that should work. There must be something else preventing the 4 last objects to be created.

    3: Yes, the loops stops both when it has reached the last on loop condition or when triggered by a stop loop command. Stopping a loop is for example useful when you want to scan an area and stop after finding what you was looking for.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating multiple objects in a fastloop question..

    Note that using stop loop stops next loop to trigger. The current loop will be finished anyway :
    -On SpaceBar pressed Launch Loop 2times

    -On loop : Stop Loop
    -On Loop : Create Object.

    This will create one object, because the first loop will be performed entirely in spite of the Stop loop action.

    This is probably not related to your problem which I don't really understand, maybe an example could help

    EDIT : If you really need your loop to stop at a precise condition, you should embed your loop inside a group (which is a good habit anyway) and close the group too.

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating multiple objects in a fastloop question..

    2) Try adding them to the debugger at the end of the loop.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating multiple objects in a fastloop question..

    I tried adding them at various points in the loop, but they didn't appear. Only the first loop's objects got added for some reason.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Creating multiple objects in a fastloop question..

    I had this problem too, except mine was only doing the final loop. I changed the order of events and conditions and deleted some extra requirements to create the objects, and it worked... Idk if this is helpful just thought it was a coincidence...

Similar Threads

  1. Creating a Single Instance of an object in a fastloop
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th April 2013, 02:54 AM
  2. creating multiple objects based on value of a variable
    By infinitum3d in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd March 2013, 02:52 AM
  3. Creating Objects Question
    By variant in forum File Archive
    Replies: 11
    Last Post: 29th November 2009, 04:45 AM
  4. Creating multiple objects around another
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th November 2008, 08:15 AM
  5. Question about creating new objects..
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 22nd November 2006, 10:30 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
  •