The Daily Click ::. Forums ::. Klik Coding Help ::. Atan2
 

Post Reply  Post Oekaki 
 

Posted By Message

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
13th January, 2009 at 02:37:26 -

Here's my problem: Is there an alternative to the Atan2 function?

I've come to the conclusion that the Atan2 function causes vitalized applications to crash, so if there is any aternative way I could calculate this, please let me know!

An example of one of my Atan2 events:

Set angle to:
ATan2 (YMouse - Y("Line"), X("Line") - XMouse)+ 180

Which always points a line towards the mouse.

Edited by -J-

 
n/a ...

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
13th January, 2009 at 02:47:39 -

Wait nevermind!

I found out that MMF1 didn't have the Atan2 function, and so I looked in Sketchy's Snippet Manager and found the "old" way of doing it!

Thanks Sketchy, once again your Snippet Manager has saved the day!

 
n/a ...

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
13th January, 2009 at 02:56:04 -

Might wanna slip Clickteam a note so they can fix that.

 

  		
  		

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
13th January, 2009 at 11:50:41 -

Last time I checked, the HWA build of MMF2 didn't support ATan2 either

 
n/a
   

Post Reply



 



Advertisement

Worth A Click