User Tag List

Results 1 to 3 of 3

Thread: which active is closest to?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-onInstall Creator Pro
    StingRay's Avatar
    Join Date
    Nov 2006
    Location
    Austria
    Posts
    1,057
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    which active is closest to?

    hi!

    is there an easy solution for testing 50 active obj
    which is closest to a position?

    thanks for your help!

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Cape Town South Africa
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: which active is closest to?

    There are a few ways to do this
    Simplest way i think (I might be wrong)=

    Use the advanced math object

    Spread value in objects var A

    Start a loop =amount of objects times

    on loop set var B to distance from the math object
    -Pre-coded formulas /decimal output formulas/distance from fixed object to x,y

    Then test wish object has the lowest value B

    Hope it makes scene





  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)

    Re: which active is closest to?

    You don't need the loop, just Always set a value to the distance, and use select obejct to select the lowest/highest value object.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Number closest to 0
    By Skyhunter in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 27th October 2012, 02:27 AM
  2. Finding the closest value...
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th June 2012, 06:27 PM
  3. Closest object with ForEach
    By Tiles in forum File Archive
    Replies: 20
    Last Post: 26th February 2011, 01:00 PM
  4. Always choosing the closest active
    By Ealaionta in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 16th August 2010, 04:00 PM
  5. Find closest point
    By haora in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th July 2007, 10:24 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
  •