Here's my really basic code. Great for making "robot" sprites move.