User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: Checking if in range

  1. #11
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checking if in range

    []Yes this IS what you are looking for.

    This formula calculates distance and -little math- constant distance from some point is... CIRCLE <img src="/center/images/graemlins/smile.gif" alt="" /> Also to test if the object is within or out the circle you just use this simple thing to find out if its lower or greater than radius. [/]
    Notice how it's NOT A CIRCLE ALL THE WAY AROUND? That means if the default MMF2 object is behind the blue object it shouldn't make any action.

  2. #12
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checking if in range

    So... compare the angle between them... -_-

  3. #13
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Checking if in range

    Like Daniel said you'd need to also do an angle check. Advanced math object can do that too. The problem with what you are trying to do is that you want the angle to be dynamic... so what you would have to do is always check the angle by the direction it is facing (90degrees to each side). When you are checking the angles you would need a system that would know that if it went to the right 90 it would or would not get a negative angle - and so it would need add the negative to 360 to get a non negative angle, I think ^^

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Range of an Alterable Value
    By LB in forum Articles
    Replies: 9
    Last Post: 25th June 2011, 02:07 AM
  2. Range Handler
    By Phi in forum Widgets
    Replies: 1
    Last Post: 12th May 2011, 02:02 AM
  3. Mirror a value within a range
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st November 2010, 01:28 PM
  4. Events and Range?
    By ad in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st February 2010, 09:38 PM
  5. set global value range
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 4th December 2006, 04:16 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
  •