Base Code I might use for LD32 ( my first LD game c: )
I like to make grid-restricted movement in my games because they are mostly puzzles or roguelikes(so for a 48-hour game it’ll probably be a puzzle game). If there is a need for pathing in game maker I prefer to use A-star pathing (the link has a download for an example of the pathing. The scripts are in the gml scripts folder.)