User Tag List

Results 1 to 5 of 5

Thread: Rotation

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Rotation

    What's the best way to rotate an object toward another object?

    I'm trying to get a large beam to fire out of the player toward the angle of the mouse.

  2. #2
    Clicker Fusion 2.5
    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
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotation

    you could use an invisible object which always positions x and y tothat of the mouse and then have your player always look at the invisible object.

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotation

    Quote Originally Posted by lembi2001
    you could use an invisible object which always positions x and y tothat of the mouse and then have your player always look at the invisible object.
    but, this method is limited to 32 angles

    if you need 360º rotations, you should look at this example

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)

    Join Date
    Sep 2007
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotation

    I tried that, and I think I must be doing something wrong.
    I'm getting the angle properly, I think, but I'm having some trouble applying it properly.

    Here's my code. http://www.sendspace.com/file/cm9u5d in case anyone is intrested in helping.

    Thanks.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2007
    Location
    USA
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotation

    Well, I didn't look at your example entirely, but since you are already using the advanced direction object, I simply used your set angle action at the bottom of the events to:
    Code:
    Direction( "Advanced Direction Object", XMouse, YMouse, X( "Player" ), Y( "Player" ))+90
    It worked flawlessly. I hope this is the solution.

Similar Threads

  1. No more rotation???
    By KLiK-iT in forum Android Export Module Version 2.0
    Replies: 12
    Last Post: 22nd December 2013, 05:53 PM
  2. Rotation help please......
    By scottige in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th December 2012, 10:02 AM
  3. 360 Rotation?
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st January 2011, 09:37 PM
  4. Rotation bug?
    By Clicktastic in forum File Archive
    Replies: 7
    Last Post: 25th August 2006, 03:45 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
  •