CodeBase - A_Pathfinder By Mince

Return to the CodeBase listing

Category: Complete Applications

Version: 0.1

0
0

Information

Uploaded: 19th Feb 2008 10:13

Modified: 13th Jul 2009 07:36

Author:  PALMER

Summary

Raster map Path Finder / AI / NPC Finds a path from Pointa(startx,starty) to Pointb(destx,desty)

Full Description

I use this in my rts and it works.<br /> <br /> Variable intensity:<br /> Setting stack_run to 10 would be very much in background, enableing<br /> you game to run through while path is being worked out.<br /> setting stack_run to 0 would be constant, slowing system.<br /> <br /> <br /> To make seperate path finders for seperate types of unit eg Workers/Attack<br /> we could make a copy of all variables change all there names eg<br /> function boss_A_pathfinder_isonopen()<br /> function boss_A_pathfinder_work_stack()<br /> function dog_A_pathfinder_isonopen()<br /> function dog_A_pathfinder_work_stack()<br /> <br />

Comments

No comments yet.