• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GMS 2 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