User Tag List

Results 1 to 6 of 6

Thread: 360 degree aim

  1. #1
    No Products Registered

    Join Date
    Aug 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    360 degree aim

    ive been trying to make a 360 degree aim engine forever. i juts can't find a good tutorial. the only ones ive found are just .mfas or videos where i cant see worth crap. please respond

  2. #2
    No Products Registered

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

    Re: 360 degree aim

    well you usually see videos and mfas because it's pretty easy to do, and if you have at least build 248 (when atan2 was added) it takes even less work:

    Code:
    Always
    --> Active - Set Angle: atan2(X("Active") - xmouse, Y("Active") - ymouse); 0
    makes an object point towards the mouse (well, it does if the object's graphic is pointing upwards, otherwise you'll have to add/subtract the appropriate angle offset from the above equation)

  3. #3
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree aim

    Or you can use the Vector movement (go to your example files) that is, if you even have that movement.

    Another way is to use the Advanced direction object.

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    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
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,062
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree aim

    Quote Originally Posted by xyzzy
    well you usually see videos and mfas because it's pretty easy to do, and if you have at least build 248 (when atan2 was added) it takes even less work:

    Code:
    Always
    --> Active - Set Angle: atan2(X("Active") - xmouse, Y("Active") - ymouse); 0
    makes an object point towards the mouse (well, it does if the object's graphic is pointing upwards, otherwise you'll have to add/subtract the appropriate angle offset from the above equation)
    its..
    Code:
    Always
    --> Active - Set Angle: atan2(X("Active") - xmouse, Y("Active") - ymouse)+90; 0

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree aim

    This should be helpful -

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=112867#Post1128 67

  6. #6
    No Products Registered

    Join Date
    Aug 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: 360 degree aim

    i havent tried it yet but i will thank you

Similar Threads

  1. 360 degree shooting
    By Hayo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th March 2010, 02:49 PM
  2. 360 degree shooting
    By Triclyde in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th March 2010, 07:13 AM
  3. 360 degree movement
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th March 2008, 10:11 AM
  4. 360 Degree Shooting
    By Amade in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th February 2008, 12:46 AM
  5. 360 degree movement example
    By UltimateWalrus in forum File Archive
    Replies: 17
    Last Post: 24th July 2006, 11:19 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
  •