| LOCKSHAPE | |
| Syntax | LOCKSHAPE |
| Explanation | LOCKSHAPE prevents the turtle's shape
from rotating when the turtle turns. This can be
convenient when you want the shape to appear in its
original orientation, regardless of how you turn the
turtle. The command HEADING
always reports the true heading of the turtle. Use UNLOCKSHAPE to restore the
shape's visual orientation to match its heading. |
| Examples | In this example,
the turtle wears the shape of a car, which faces the
right, even when the turtle itself turns. Enter these
instructions to watch the car move slowly towards the
right of the screen, then plummet straight down.
SETSHAPE "Sailboat
RIGHT 90 Even though the true heading of the turtle is 180 degrees, the car shape remains at its 90 degree orientation.
|