Turtle-tastic Moves
This content is not available in your language yet.
Forwards and Backwards
The number you put in the brackets will be the amount of pixels your turtle moves.
This moves your turtle forward and backward by 100 pixels.
Left and Right
You can add in equations inside the brackets, and the program will calculate it for you!
This turns your turtle left 60 degrees and right 90 degrees.
Move to a Set Location
Positioning in most languages get you to write the X and Y location inside the brackets, like goto(x, y)
.
Try these two functions. Can you see the difference between goto
and penup
?
Explanation: Penup() moves the turtle without drawing a line from it’s original position to the desired position. The above code is positive on the x axis (180) which is to the right on screen, negative on the Y axis (-82) which is down on the screen.
I Can Understand How To…
- Move the turtle forwards and backwards.
- Turn the turtle.
- Use (X, Y) coordinates to move the turtle.