Mouse following (again)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi ,

    I am working with demo version of f2 developer edition .
    I need some help . lots of people asked the same question before but it doesn't works with my version I guess. (there is no Atan2 function )

    I want my object to rotate and follow mouse.
    I ve created an area for this.
    and wrote the function like that.

    ATan((((Y( "Lt blue button info" ))-YMouse))/(XMouse-((X( "Lt blue button info" )))))

    I ve used an button instead of an object.(no matter it shall work )

    it rotates but not actually like that I want.
    I guess returning angle values are not between 0-359 so it fails.

    what shall I do.
    Please help.

    :)

  • Try to use the extension Clickteam Movement Controller, it has a function to get the angle beetween two points without maths :)

    Or try :

    Floor(ATan2(Y("Lt blue button info")-YMouse, XMouse-X("Lt blue button info")+180)
    EDIT : Oh sorry you're using demo, i can't help you :/

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!