User Tag List

Results 1 to 2 of 2

Thread: Making a ray that follows the mouse

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export Module

    Join Date
    May 2010
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making a ray that follows the mouse

    So, how would I go about making a line (ray) whose x1,y1 originates at a particular location, with the x2,y2 following the mouse (or following another object that also follows the mouse)?

    I've seen it done before in an example file somewhere, but I can't seem to find it.

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Making a ray that follows the mouse

    Depends...

    You could...

    Make a 1x1 pixel active called 'line' set the action point to be the bottom of it.

    Use the Advanced Movement Object which allows you to calculate direction and distance between objects.

    Then set the position of your 'line' to where you want it to start.
    Tell it to always set the angle to the angle from the calculation.
    Tell it to always set the scale X or Y (i think Y) to the distance between the 2 objects.


    I think there is a line drawing extension, but if you just want a straight line, you can use the above method.

Similar Threads

  1. making smooth 360 top down rotations looking at mouse
    By HenSoup in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th September 2012, 01:29 AM
  2. making hiden mouse pointer into aimer .
    By brad in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th July 2009, 07:45 PM
  3. [Resolved] Making Mouse Invis
    By gro0003 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th August 2007, 01:59 PM
  4. Mouse click events runs faster when mouse moves
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd February 2007, 02:54 PM
  5. Mouse wheel object? Making zoom using math...
    By The_Alee in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd August 2006, 01:39 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
  •