SETHEADING (SETH)
Syntax SETHEADING number
SETH number 
 
Explanation SETHEADING turns the turtle to the degree position specified by its input. Positive numbers turn the turtle clockwise.

SETHEADING turns the turtle according to the direction of the screen and not the current heading of the turtle. SETHEADING 0 always points the turtle straight up, regardless of the direction in which it is pointing.

You can also use PPROP to set the HEADING property of a turtle.

To output the turtle's heading, use HEADING.
 

Examples TO NAUTILUS
     RT 5 

     FORWARD HEADING 
     BACK HEADING
     IF HEADING < 130 THEN NAUTILUS 
END
NAUTILUS defined.
NAUTILUS

 

TopIndex