The Daily Click ::. Forums ::. Klik Coding Help ::. Pathfinder formula
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
7th September, 2006 at 13:00:51 -

I found this article on how to make a path finding formula: http://www.clickteam.info/kb/start/index.php?showtopic=313

However, the example doesn’t work, and I’m not sure how to make one myself.

Angle = Angle + CollisionMask( X + Cos( Angle - 45) * 64, Y + Sin( Angle - 45) * 64 ) * 3
Angle = Angle - CollisionMask( X + Cos( Angle + 45) * 64, Y + Sin( Angle + 45 ) * 64 ) * 3

I have no idea how to use this code. Can anyone explain or preferably make an example showing how to make a pathfinding code based on this formula using 32 directions instead of 360?

 
http://www.robocaptain.com
   

Post Reply



 



Advertisement

Worth A Click