User Tag List

Results 1 to 9 of 9

Thread: Setting the angle to point at the mouse

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Location
    Uithoorn, the Netherlands
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting the angle to point at the mouse

    If I want to set the angle of an object (Active) to point at the mouse, how would I go about that? I have tried several stuff, nothing worked.

    Thanks in advance.

  2. #2
    No Products Registered

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

    Re: Setting the angle to point at the mouse

    Set Angle
    Direction("Advanced Direction Object", X("Active"), Y("Active"), XMouse, YMouse)

    I'm a little unsure about the Y's... you might need to flip the y values...Also, if you did'nt notice.. you need the advanced direction object!

  3. #3
    No Products Registered

    Join Date
    Aug 2007
    Location
    Uithoorn, the Netherlands
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting the angle to point at the mouse

    Thanks, that worked; how would I go about this with setting the direction? (I noticed that it doesn't really um, work with directions)


  4. #4
    No Products Registered

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

    Re: Setting the angle to point at the mouse

    Well..Divide the result of the direction calculation with 11.25 is a simple solution

    Set Direction -> Expression
    Direction("Advanced Direction Object", X("Active"), Y("Active"), XMouse, YMouse) / 11.25

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting the angle to point at the mouse

    You can also setup the Advanced Direction Object to use 32 directions instead of the default 360.

  6. #6
    No Products Registered

    Join Date
    Aug 2007
    Location
    Uithoorn, the Netherlands
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting the angle to point at the mouse

    Thanks, I got everything to work.

  7. #7
    No Products Registered

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

    Re: Setting the angle to point at the mouse

    Quote Originally Posted by Werbad
    You can also setup the Advanced Direction Object to use 32 directions instead of the default 360.
    Indeed! ^^

  8. #8
    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: Setting the angle to point at the mouse

    Why are you usingthe direction object? Use the active pitur object, it has a 360 look at mouse feature.
    Working as fast as I can on Fusion 3

  9. #9
    No Products Registered

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

    Re: Setting the angle to point at the mouse

    True, but if you want animated objects or such, it's not an option Otherwise it works just fine! ^^

Similar Threads

  1. Help with Angle Setting for Compass
    By Jaklar in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 24th March 2013, 10:52 PM
  2. Help with setting angle to weapon!
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th February 2011, 08:39 AM
  3. Setting angle to face another object
    By ELCGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 27th December 2010, 02:16 PM
  4. Setting angle for a vector movement
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th April 2007, 11:00 PM
  5. Setting angle of LPRO?
    By vortex2 in forum Extension Developers Lobby
    Replies: 3
    Last Post: 18th October 2006, 12:39 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
  •