Goal: Travel across the screen while dancing.
Vocabulary: seth (setheading), fd (forward), stopall

Notes You can make your person move across the screen while dancing if you tell it to move forward a little bit every time it changes shape.
- In the dance procedure, fd 5 means "forward 5" and moves the shape forward 5 tiny turtle steps.
- Remember that new turtles are always facing straight up. This person is really a turtle in disguise. We need to turn the turtle so that the person will move sideways instead of straight up.
Down in the command center, type:
seth 90
We say it, "set heading 90." We are telling the turtle, "Set your heading to 90 degrees." That means: "No matter which way you were already facing, face straight to the right."
(Be sure to hit the Enter/Return key after you type seth 90. You will not see any change in the shape itself, but the turtle wearing this shape will face straight to the right and will move to the right when you click the button. You only need to do this one time. The turtle will remember which way it is facing, next time you open the project.)
- Set the dance button to many times so that your character will keep on dancing.
- Make a stopall button to stop all of the action on the page. (Stopall is one word.)
What If?
What happens if you type seth 100 or seth 120 in the command center?
What happens if you type a larger number after fd?
Challenge
Can you make your person dance straight to the left?
|