User Tag List

Results 1 to 3 of 3

Thread: How can I point an object towards the cursor ?

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I point an object towards the cursor ?

    I have two active objects and I move one of them with the mouse like a cursor. I want the second object (static) which looks like a finger to rorate and point to whenever the first object/cursor is. Is there a way to do that besides drawing 32 different frames of animation? Some mathematical formula or something? I'm trying to learn some math so if there's a math related solution I would be glad to hear it. Thanks

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I point an object towards the cursor ?

    Yes! MMF2 has an "angle" option which rotates the active object at runtime to the angle you type in.

    If you use the extension "Clickteam Movement Controller" you can set the rotated angle of the hand object to the angle between the two objects.

    Finding the angle between two objects is an option inside the Clickteam Movement Controller.


    AngleObjects( "Clickteam Movement Controller", >fixed value<, >fixed value<)

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I point an object towards the cursor ?

    Thanks Nick, that's great. My only problem is, what do I substitute the ">fixed value<: parts with? I thought it would be the names of the objects but that doesn't work.

    EDIT Nevermind, I'm a moron but I found it. I had never use the fixed value thing before.

Similar Threads

  1. cursor object bug under Windows 7
    By Brovic in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th January 2012, 10:31 AM
  2. cursor object? or own cursor?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 31st December 2007, 07:52 AM
  3. Cursor object and alpha bug
    By Ross in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th July 2006, 11:34 AM
  4. Cursor Object
    By Sphax in forum Extension Development
    Replies: 13
    Last Post: 17th July 2006, 12:02 PM
  5. Cursor Object BUG!!!
    By Casper1989 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th July 2006, 06:45 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
  •