Home
Project Folders
Teacher Resources
Student Resources
En ESPAÑOL
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

obstacle course 1 2 3 4 5 6 7
Obstacle Course 1
Try It
16 KB


Goal:   Steer a turtle with buttons.


Screenshot


Vocabulary:   rt (right), lt (left), fd (forward), stopall

Code
Shapes
Project Map

code


Notes

  1. 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.

  2. Make a button.   Name it lt 30.   This means, "Turn left 30 degrees."

  3. Make a second button.   Name it rt 30.   This means, "Turn right 30 degrees."

  4. Make a third button.   Name it stopall.   Clicking this button will stop all the action on the page.

  5. 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?




© copyright 2001 - 2008  OpenWorld Learning.   All rights reserved.