Ok suppose you have 8 animations.
Now take those 8 animations and rename them something like myaniamtion0, myaniamtion45, myaniamtion90, myaniamtion135, myaniamtion180, myaniamtion225, myaniamtion270, myaniamtion315, and myaniamtion360.
Now suppose that rather than compare the angle you set the animation based on the angle like:
mysprite set animation to "myanimation"&int(mysprite.Pathfinding.MoveAngle)
What do you think would happen?