User Tag List

Results 1 to 8 of 8

Thread: Pick all objects in a zone (dynamic)

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Mar 2012
    Location
    Paris
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pick all objects in a zone (dynamic)

    Hello,
    How can I pick all objects in a zone with variables for the position?
    because I use scrolling
    Thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Give all objects that you may want to count, the same qualifier.

    Then run a loop as many times as there are objects with that qualifier.

    On the loop, if an object with that qualifier is in your "zone" turn a flag on.

    Then later on, you can simply have the event: if qualifier flag x is on then do something.

    Let me know if that doesn't make sense, or if I have misunderstood your post.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You don't need a loop, you can just use two compare to X and two compare to Y conditions for the entire qualifier and let MMF2 do it faster than a loop
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Mar 2012
    Location
    Paris
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LB: I tried to compare X and Y but only one object is compared

  5. #5
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm unsure if LB's method works or not in the most up to date version of MMF2. Do you have build 254?

    The easiest way I could foresee how to do this if LB's method doesn't work, is two compare to X and two compare to Y for the qualifier like LB suggested but also throw in a ForEach loop for the qualifier at the top of the conditions chain.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It can be done without loops of any kind. Check this example; drag the black angle bars to change the zone:
    Attached files Attached files
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm... I don't know why it wouldn't be working for seccia then. Hopefully that example helps them out greatly.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Mar 2012
    Location
    Paris
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry, I used "Compare two general values" instead of "Compare X/Y position to a value"
    thanks

Similar Threads

  1. Picking Objects in a zone
    By danjo in forum Extension Development
    Replies: 0
    Last Post: 26th January 2008, 11:04 PM
  2. Pick Random Object From a Zone.
    By 00J in forum File Archive
    Replies: 0
    Last Post: 28th December 2007, 07:27 AM
  3. pick objects
    By beannie in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th November 2007, 10:45 AM
  4. [Bug] Move objects via the Position/Zone parameter
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th August 2007, 02:03 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
  •