• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Auto Tile Path Maker

Petrik33

Member
I will be short cause I am almost sure this code should already exist but I can't just find it using google.
So I need logic to make Computer count the shortest path from 1 tile to other including the diagonal movement and tile-based collisions.
 

NightFrost

Member
If the layout is entirely grid-based, you can use the various mp_grid functions to calculate a path. They use the A* pathfinding algorithm so pretty fast.
 
Top