Goal: Steer a turtle with buttons.
Vocabulary: rt (right), lt (left), fd (forward), stopall

Notes - Hatch a turtle. Place the eye tool on it to open its dialog box. Give it the instruction: fd 1. This means, "Move forward one tiny turtle step." Set it to many times. Now when we click on the turtle, it will move forward one tiny step, over and over again.
- Make a button. Name it lt 30. This means, "Turn left 30 degrees."
- Make a second button. Name it rt 30. This means, "Turn right 30 degrees."
- Make a third button. Name it stopall. Clicking this button will stop all the action on the page.
- To steer the turtle, first click on it to start it moving forward. Now click as many times as you like on the lt 30 or rt 30 buttons.
What If?
What happens if you try a different input (number) for lt and rt? ( Try lt 45 and rt 45, or lt 90 and rt 90.)
Challenge
Can you make the turtle move in a circle?
|