User Tag List

Results 1 to 4 of 4

Thread: Loop Limitations?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2010
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loop Limitations?

    I'm creating a grid using loops. the grid is made up of 40x40 active objects that are 20x20pixels in dimension.

    Button Generate clicked
    Start loop "rowndown" 40 times

    On loop "rowndown"
    Start loop "row" 40 times

    On loop "row"
    Create Tile at (0,0)layer 1
    Tile : Set X position to Loopindex("row")*20+10
    Tile : Set Y position to Loopindex("rowdown")*20+10

    This should result in 1600 active objects in a grid

    The loop seems to work fine when i create less that 465 objects

    any more than 465 and it creates 465 all in one space (even tho it should be creating 1600)

    there is no other code.

    WTF? loop limitation? or just bad code?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Loop Limitations?

    check the frames properties for the number of objects it is allowing. By default its set at 500

    This is under the runtime options for the frame.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

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

    Re: Loop Limitations?

    There are indeed loop limitations but they are so astronomically high that you will generally not encounter them (limits on # of loops in 1 go and loop recursion depth). As Jeff said, you exceeded the maximum # of objects allowed in your frame editor. You can set that as high as 20,000.

    The reason why all objects are being created in one place is because of how the object scoping works with the create object event. When the create object event executes, all further code that refers to that kind of object will be scoped to the newly created objects- ignoring the rest. But when the create object event fails, that scoping will never occur- all events further down in that line of code will apply to *all* of your objects.



    So btw, for MMF2 updates and MMF3, object creation should descope an object class if its resolution fails and the object limit should be default be set to the highest value (is there any drawback?)!

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2010
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loop Limitations?

    Thanks guys thats brilliant.

    I knew MMF could handle way more than 500ish objects but i didnt know you had to set the amount!! hehe

    Thanks for taking the time to explain why they created in one spot pixeltheif. Object scoping is something i evidently need to read up on.




Similar Threads

  1. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  2. Limitations
    By Corlagon in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 5th June 2012, 12:24 PM
  3. Questions about limitations
    By Ls2 in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 12th August 2011, 03:45 PM
  4. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  5. Limitations of OS
    By dollar in forum Install Creator and Patch Maker
    Replies: 5
    Last Post: 7th April 2007, 12:45 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
  •