This uses some simple rules: 1 - it switches it's x with it's y, and the y becomes x. 2 - it looks at the mouse, and moves forward 10 steps. 3 - it points forwards, making it look nicer. This combined, makes the effect.