GameMaker Help with mp_grid and paths

Rook

Member
I'm making a stealth game where if the pursuer loses you they will return to the start and continue on their pre-set path I made via the path resource. Strangely though, before i was using if (abs(x - start_x) < 2 && abs(y - start_y) < 2) to return weather the enemy was at the start, which stopped working with the particular grid system i'm using. I tried using distance_to_point which works, but now he starts the path with a lower y position than before. Has anyone got an idea of what's gone wrong?



The grid system i'm using:

 
Top