Works in GM6 and GM7.
New Version, check the features below.
AStarDLL is a quick and easy to use pathfinding DLL that uses the A* Algorithm. It has the following features:
-Can place obstacles
-Can block off cells from certain directions (8-dir blocking)
-Can set the "costs" for moving diagonally and non-diagonally
-Can set "cost" for moving into a specific cell
-Can set "cost" for moving into a specific cell from a specific direction
-Can set whether to allow diagonal movement or not
-Can set whether to allow cutting edges of obstacles when moving diagonally or not
-Has a function that centers the object in the cells when following a path
*NEW*-Has functions to return whether a cell is an obstacle, whether a cell is blocked from a certain direction, the individual cost of a cell, and the individual cost of a cell from a certain direction.
-Request your ideas!
This DLL can get anywhere in this maze as well as anything you create:
The download comes with a GM6 Example (Works in GM7), AStarDLL.dll, ReadMe, and the Scripts needed. To understand the scripts and how to use them check out the ReadMe.
IF YOU ENCOUNTER A PROBLEM, TAKE A SCREENSHOT
Download AStarDLL (Reply Please )
If you encounter any errors that say "Variable astarR_anything does not exist." even though you have initialized the DLL, it is because the initialization is happening after you call those events. To prevent this, do not call anything related to the DLL in the creation events of other objects, make them on an Alarm set to 1.
If you download or use source please reply asking permission.
DELPHI SOURCE CODE: CLICK ME
Thank you for downloading!
Edited by homebrewpc, 25 September 2007 - 11:39 PM.