This is a simple example of navigation left-right and up-down on 90º angles (0, 90, 180, and 270). By moving forward 10 steps many sprites will "follow their noses" and move ahead. See Steering your sprite in any direction for more angles.
Look inside to see the code