User Tag List

Results 1 to 5 of 5

Thread: How to calculate the direction?

  1. #1
    No Products Registered

    Join Date
    May 2007
    Location
    China
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to calculate the direction?

    Hello everyone,i met a question about active obj's direction.
    i created an active object with ballmovement and set the position(x,y) as the movement destination.
    i know i can use the event "look in the direction of" to point at this position.
    But , if i use the event "select direction" to calculate the direction,how to express it ? How to calculate the direction toward any special position(x,y)?
    Thanks for your help.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can use the ATan2 function to get the angle in degrees:
    ATan2(Y1-Y2, X2-X1)
    Then, you can divide by 11.25 to get the direction in MMF2 units (360 degrees to 32-direction system).
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    May 2007
    Location
    China
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for LB's help.But i'm doubt about this "ATan2",what's meaning? How can i do "ATan2",with some plugin?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    May 2007
    Location
    China
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh,it's here.
    Thanks.

Similar Threads

  1. How to calculate RGB coefficient?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th March 2012, 09:34 PM
  2. Isometric Tetris?
    By webwolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th November 2011, 01:48 PM
  3. how to calculate rotated hotspot?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th July 2011, 08:45 PM
  4. How can I calculate/show percentage
    By Tuna in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 28th April 2011, 06:47 PM
  5. Calculate Calculations?
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2007, 05:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •