GameMaker: Tower defense path-finding


Most of units turning back to take advantage of appearing hole in the maze

This example may be useful for ones making games of Tower Defense genre, as well as other games that require instances to dynamically re-adjust their path as new obstacles are being added.

System, included in this example, recalculates paths only when needed, thus providing minimum resource usage.
As well it detects if units have been blocked (to exclude possibility of cheating by enclosing units), and has a lesser sub-system to recycle & reuse paths.

Overall, should be intermediately useful.

Download

Related posts:

4 thoughts on “GameMaker: Tower defense path-finding

  1. I’m trying to make an ai that can do movement, place bombs and avoid explosions in a bomberman minigame, seemed easy at first, now i’m really stuck in this grid path things 😅

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.