Goal: Control a turtle´s speed with a slider.

Notes - Make a slider and name it speed. Set the minimum to 1 and the maximum to 5.
- In the turtle's dialog box, type fd speed / 10.
This means, "Move forward one-tenth of the number on the speed slider."
Set the instruction to many times.
Now when we click on the turtle, it will move forward one-tenth of the slider's number, over and over again. (If the speed slider is set to 1, the turtle will move forward 1/10 of a turtle step. If the speed slider is set to 5, the turtle will move forward 5/10 of a turtle step, which is the same as 1/2.)
What If?
What happens if you move the bar on the speed slider while the turtle is moving?
What happens if you change the maximum speed to 10 (or more)?
What happens if you make the minimum speed a negative number, such as -5?
Challenge
Can you change the turtle's instruction to make it move even more slowly, when the speed slider is set to a minimum of 1 and a maximum of 5?
|