This is simular to the snap to grid script (you can find that here: http://scratch.mit.edu/projects/techy/395789 ) Instead of snaping to a place, it will snap to a direction. You can set how much the snap effect will do by changing the variable. Credit to techy for snap to grid script.