User Tag List

Results 1 to 4 of 4

Thread: Loop question

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loop question

    I was wondering if anyone else notice this because I just never thought that it would make a difference:

    Let's imagine the following:

    Start of Frame
    - spread value 0 in ID(active)
    - active group "loop"

    [group loop]
    On group activation
    - start loop "mapping" for number of objects(active) times

    On loop "mapping"
    + loopindex "mapping" = ID(active)
    - write value 1 to array at X/Y(active)/32 Z0

    This would write value 1 into the array at the X/Y position of all actives divided by 32 (I use a 32x32 grid)

    However if I use:
    "compare two general values" - it will only work for one object
    "compare to alt value of active" - it will work for all objects

    In the Editor both events looks identical until you double click them. How come that there is a difference, I thought both would be the same for:
    + loopindex "mapping" = ID(active)

    How come that one has a reference and the other fail to reference the object? Huh?

    It just took me an hour to figure out what was going wrong ...

  2. #2
    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: Loop question

    The alterable value looks first for that value the alterable value should be, and selects, while the compare two general values doesn't select it so every time it does the check for the same one even though the loop index changed.

    I think. Don't quote me.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loop question

    Compare two general values I believe returns a true/false value only and does not allow you to select individual instances of an object. So if ANY of your objects match the condition, then it returns a TRUE meaning that all objects have the event applied.
    Whereas when you select from the value of an object directly, that filters them all and selects only the objects that the condition is true for.

  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: Loop question

    Quote Originally Posted by RickyRombo
    The alterable value looks first for that value the alterable value should be, and selects, while the compare two general values doesn't select it so every time it does the check for the same one even though the loop index changed.

    I think. Don't quote me.
    Too late

Similar Threads

  1. ForEach loop question
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th July 2014, 11:05 PM
  2. Loop Question...
    By Orpa1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 25th July 2009, 05:35 AM
  3. MMF2 - Question on the MMF Loop
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th August 2008, 06:24 PM
  4. Fast loop question
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th April 2008, 12:33 AM
  5. Yet another Loop question
    By Doc4 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th November 2007, 03:01 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
  •