In this project, instead of using a slider to control how much the person moves forward, we will use a slider instead to control the amount of time that the person waits between changing shapes.
- Make a slider named howfast?. Keep its minimum set to 0, and set its maximum to 10.
- In the procedure, if we just write wait howfast?, then a high number on the slider will make the person wait longer (and move more slowly). It would make sense for a high number to make the person move faster.
Wait 10 - howfast? means, "Start with the number 10 and subtract the number on the howfast? slider. That is how long to wait."
We need to be sure that the numbers on the slider do not go higher than 10 so that when we set it to the highest number, the turtle will be waiting 10 - 10, or 0. (That means it won't wait at all and will move really really fast!!)
What If?
What happens if you move the
howfast? slider while the
dance button is pressed?
Challenge
Can you control how far the person will move
fd and how long the person will
wait by creating two sliders and using both slider names in your procedure?
Can you create three or more sliders and control them all in one procedure? (
howfar? howfast? heading? size?)