Username
Password
Are you new? Sign up now
I’ve forgotten
Home
:.
Downloads
:.
Articles
:.
Projects
:.
Reviews
:.
Forums
:.
Arcade
:.
Klikcast
:.
GOTW
The Daily Click
::.
Forums
::.
Klik Coding Help
::.
Pathfinder formula
Post Reply
Post Oekaki
Posted By
Message
Willy C
Registered
14/02/2004
Points
1524
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
1
All
Advertisement
Worth A Click