I am making a maze game in game maker v1.4.1763, and need some help changing a objects sprite based on its direction of movement. I am currently have an object following the mouse using game makers drag and drop 'move towards" action. I have sprites that are animated for the object from 4 different perspectives(front, back, left, and right.) The object can move in any direction (It doesn't have to stick to the cardinal directions.)
I want the object to change its sprite based on witch way it is "mostly" moving. I don't really know how to program using game makers language, but I know how to get it to execute code. I have tried almost everything using the drag and drop coding and this can only be accomplished using some code. If someone could help me come up with that code, that would be awesome.