The Daily Click ::. Forums ::. Klik Coding Help ::. Angle between objects
 

Post Reply  Post Oekaki 
 

Posted By Message

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
9th March, 2007 at 21:30:51 -

So, another question; How do I get an angle between two objects in MMF2 with as few steps as possible?

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
9th March, 2007 at 22:42:25 -

Eh, just Tan^(-1)((Y1-Y2)/(X1-X2))
Thats also known as ArcTangent.

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
9th March, 2007 at 23:19:28 -

Thanks!

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
10th March, 2007 at 05:44:06 -

There are also plenty of MMF 1.5 and MMF2 extensions that can do this, if you don't feel like typing out the formula every time you want to get the angle between two points.

 
n/a

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
10th March, 2007 at 06:06:07 -

Yup, instead you have to click your way through the object's actions every time.

Using a formula might be faster for your game instead of doing it externally, too. Try sticking with the formula.

 
Old member (~2004-2007).

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
10th March, 2007 at 06:29:41 -

No extension overhead, either.

 
n/a

Deleted User
10th March, 2007 at 08:27:39 -

E_E

 

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
10th March, 2007 at 09:03:54 -

Who's wrongly using my eyes!?


 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Deleted User
10th March, 2007 at 09:35:11 -

V_V

 

Deleted User
10th March, 2007 at 09:46:37 -

<_<

 
   

Post Reply



 



Advertisement

Worth A Click