User Tag List

Results 1 to 6 of 6

Thread: A couple general questions

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A couple general questions

    1. How do I compare an object's distance from another object?

    2. How do I have an object move towards another?

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: A couple general questions

    For distance, you can use the euclidean equation:

    Sqr( ((>X Point 1<->X Point 2<) Pow 2)+((>Y Point 1<->Y Point 2<) Pow 2) )

    If you're doing a lot of objects, thats very slow because of the square roots, so use this:

    ((Max(Abs((>X Point 1< - >X Point 2<)), Abs((>Y Point 1< - >Y Point 2<)))) * 0.941246) + ((Min(Abs((>X Point 1< - >X Point 2<) ), Abs((>Y Point 1< - >Y Point 2<)))) * 0.41)

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A couple general questions

    Oh, 2 more things:

    3. How would I delay the effect of a condition

    4. How can I have an condition that only applies under other conditions?

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A couple general questions

    Quote Originally Posted by Pixelthief
    For distance, you can use the euclidean equation:

    Sqr( ((>X Point 1<->X Point 2<) Pow 2)+((>Y Point 1<->Y Point 2<) Pow 2) )

    If you're doing a lot of objects, thats very slow because of the square roots, so use this:

    ((Max(Abs((>X Point 1< - >X Point 2<)), Abs((>Y Point 1< - >Y Point 2<)))) * 0.941246) + ((Min(Abs((>X Point 1< - >X Point 2<) ), Abs((>Y Point 1< - >Y Point 2<)))) * 0.41)
    I'm sorry, but I'm incredibly new to Multimedia fusion 2, and have no Idea what to do with an euclidean equation. Could you please elaborate?

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: A couple general questions

    You can use a Timer for a delay.

    Set the timer to 0 then
    Timer=whatever amout of Time
    Do stuff

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: A couple general questions

    You can also use the Advanced Direction Object extension to find the distance between 2 points or 2 objects.

Similar Threads

  1. Couple of questions
    By Keith in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 3rd March 2013, 03:30 PM
  2. Couple of questions
    By JasonDarby in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 24th December 2010, 08:48 AM
  3. A couple of questions!
    By Gunnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th September 2010, 08:51 PM
  4. A couple moo questions
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd September 2007, 02:27 PM
  5. couple questions
    By Magnet in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 24th April 2007, 04:59 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
  •