Artificial Intelligence Tools Extension"Artificial Intelligence Tools Extension" provides some additional blocks for working with graphs. It is a general-purpose graphs toolset, which includes an implementation of A* pathfinding.

The purpose of the "Artificial Intelligence Tools Extension" is to solve graph-related decision-making problems. Some example applications include:
- Solving a maze
- Finding the best path from point A to point B
- Identifying if two areas are connected
- NPC in a real-time strategy game needs to research upgrades to produce a desired product. In what order are the upgrades researched?
DownloadThe extension can be downloaded
here (.zip),
here (.tar.gz), or from
my site (.zip or .tar.gz).
A sample project file can be downloaded
here or from
my site.
Old Releases are available from my
Archives PagePlease see:
How to Install and Update an Extension.
General FeaturesBasic features of this extension include:
- Customize costs of edges
- Name nodes and connections
- Not strictly map-based. For maze-solving and path-finding, paths can include "teleports" (doors, etc.)
- Multiple graph management
- Quick implementation (solve a basic path-finding problem with only two blocks)
- Customizable heuristic function
- Ability to export the entire graph to a list (useful for debugging)
Quick ReferenceAll documentation can be found at
my site.
Version History2015-11-24: (Beta Release 1) Initial release. Added 10 blocks.
Beta release notes: These are the ten blocks that were required to solve my own problem. I can add more blocks if requested.
Please note that this is a beta release. There may be a few bugs that slipped through the cracks. Please let me know if you find any
2015-11-30: (Beta Release 2) Added graph drawing block.
2015-12-02: (Beta Release 3) Bug fix.
Technical Details: There is a bug in the A* implementation that can cause AStar.pathToArray to hang. A* stores information about nodes it has visited in the node itself. Added a function that resets this data each time AStar.findPath is called, so that data from previous searches does not contaminate future searches.
2016-07-20: (Beta Release 4) Added 12 new blocks.
2016-09-29: (Beta Release 5) Fixed bug in blocks.xml.
2016-10-15: (Beta Release 6) Addressed issue with 'cost of path' block in Flash builds. See bottom of page 2 of this thread for details.
2016-11-06: (Beta Release 7) Bug fixes.
2018-04-08: (Beta Release 8) Stencyl 3.5 layer compatibility fixes for autograph function.
Credit: yoplalala