User Tag List

Results 1 to 7 of 7

Thread: Problem with spread ID and object selection

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with spread ID and object selection

    I have a constantly changing value A in an object (Variable holder"), allright?

    And then there are 200 active objects ("Active") that each have a unique ID-number (Start of frame --> spread value 1 in ID).
    When the active object gets selected (when it has the same ID as the changing value A), I want that very active object to do some stuff. I've tried it like this:

    ID("Active") = value A("Variable holder") & Only one action when event loops --> Do stuff, Active!

    I thought that the event would automaticly select the correct copy of "Active". It can only be true for one object at a time.

    But it doesn't work. =/
    Why?

  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: Problem with spread ID and object selection

    Objects are only looped and selected if you're using a condition of that object:
    "Compare to alt value" in your "object" will result in the matching "object"s being selected, and won't work as expected if you have more than one duplicate of any other object in the "expression" you're comparing against.
    "Compare two general values" won't select any objects, and won't work as expected if you have more than one duplicate of any of the objects in either expression.

    In conclusion: An object is only selected when using a condition that belongs to that object. Objects in an expression in a condition don't get looped through or selected.

    EDIT: If the condition takes an object as a parameter, then it can select them as well. eg. the "is overlapping" condition selects both the objects involved, not just the one the condition belongs to.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with spread ID and object selection

    I get it. Hmm. So what would be the solution here?

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with spread ID and object selection

    I got it working!

    Almost.

    The IDs are spread from the last object to the first (in the order they were duplicated) and not the other way around. Weird. Any reason for this?

  5. #5
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with spread ID and object selection

    Yes, to combat is simply use

    Instead of:

    +Alterable value a = value of selected
    -bla bla bla


    use:

    +Number of objects-Alterable value a = value of selected
    -bla bla bla

  6. #6
    Clicker Multimedia Fusion 2 Developer

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

    Re: Problem with spread ID and object selection

    Yeah, that's the order they are in MMF's object list.

    Duplicates created in the editor are in Z-order in the list, objects created at runtime are just added to it.

  7. #7
    No Products Registered

    Join Date
    Sep 2006
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with spread ID and object selection

    It works almost perfectly now. But there's still one thing that bugs me. I can't use the "only one action when event loops" thing, which makes it useless for a lot of stuff. Any way around it?

Similar Threads

  1. Spread Value, character ID problem
    By EdibleWare in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 17th October 2012, 05:55 PM
  2. Another spread value on duplicates problem
    By ionside in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 4th August 2010, 09:27 AM
  3. Spread value problem
    By Algul in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st May 2009, 08:13 AM
  4. Spread value and object selection, part II
    By gum in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 19th September 2007, 06:26 PM
  5. Objec t Selection / Spread Value Question
    By Golds in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd August 2007, 04:09 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
  •