User Tag List

Results 1 to 8 of 8

Thread: Angle?

  1. #1
    Clicker Fusion 2.5 Developer
    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
    May 2008
    Location
    Denmark
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angle?

    How to get the angle between an object and the mouse cursor?

  2. #2
    Forum Moderator Multimedia Fusion 2 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eagle4's Avatar
    Join Date
    Jul 2006
    Posts
    950
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    pythagore
    My effect library are available
    http://myetic-studio.fr/produits.php

    My Game
    Luor | Remedium | Sky Invader

  3. #3
    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)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,352
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    You can use the Clickteam movement controller. You find it among the other extensions when you create a new object.

    Use Compare two general values, and then you can use the Clickteam movement controller to get the angle between either two points or two objects.

    Edit: I wrote distance instead of angle..

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeň, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    He asked for the angle :P

    Atan2(objy-mousey, objx-mousex) if I'm not mistaken...

  5. #5
    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)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,352
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    Ahh, I wrote the wrong word
    The Clickteam Movement Controller can do both angle and distance

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    Quote Originally Posted by DanielRehn
    He asked for the angle :P

    Atan2(objy-mousey, objx-mousex) if I'm not mistaken...
    ymouse and xmouse, not mousey and mousex

  7. #7
    Clicker Fusion 2.5 Developer
    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
    May 2008
    Location
    Denmark
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Angle?

    Thanks guys

  8. #8
    Clicker Fusion 2.5 Developer

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

    Re: Angle?

    Quote Originally Posted by DarkeSoft
    Quote Originally Posted by DanielRehn
    He asked for the angle :P

    Atan2(objy-mousey, objx-mousex) if I'm not mistaken...
    ymouse and xmouse, not mousey and mousex
    Been using Construct lately? :P

Similar Threads

  1. Angle = Angle +0.3
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 8th November 2013, 02:32 AM
  2. Angle towards...
    By Wolfking_Warrior in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th October 2012, 06:35 PM
  3. Angle bug
    By ColdFire in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 12th August 2011, 02:26 AM
  4. angle
    By nick_Peoples in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 16th March 2010, 01:45 AM
  5. angle calculator
    By rogiedodgie32 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 7th February 2010, 03:57 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
  •