User Tag List

Results 1 to 4 of 4

Thread: Rotate object to face another...?

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rotate object to face another...?

    I have an enemy moving from one end of the screen to the other, and I need a turret to rotate and point towards the enemy's x/y coordinates. I used the 'set angle' command, and retrieved my enemy's x/y coordinates, but the turret's rotation axis is in the corner of the sprite... How do I set the object's rotation axis to be in the center?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate object to face another...?

    Edit the hotspot of your turret graphic to the center, by clicking on the fish looking button.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    No Products Registered

    Join Date
    May 2009
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate object to face another...?

    Okay... Thanks. That worked.
    Can you think of a better way of making an object rotate to follow another? My way makes it rotate whenever the enemy moves, but it doesn't remain aimed at the object... It rotates faster than the enemy moves... Kind of inaccurate.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Rotate object to face another...?

    Jaffob made a great example. Let me see if I can find it.

    Edit: Here you go.

    Rotate Example

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. Help Please... Need to Rotate Rotate object with a wheel
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th February 2012, 04:48 PM
  2. 360 rotate object
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th July 2011, 07:38 PM
  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. Rotate towards and shortest rotate direction
    By Tiles in forum File Archive
    Replies: 19
    Last Post: 2nd October 2010, 02:25 PM
  5. Rotate at object
    By jellytot in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd January 2007, 06:55 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
  •