
Dizzy: Counterdizzywise
1. Remove the when green flag clicked block and replace it with a when I receive Spin block.
2. Under the when green flag clicked block, add blocks to do the following:
Ask “Clockwise (y/n)?” and wait.
If the answer is y, set the Direction variable to 1. Otherwise, set it to -1. Note that you will need to add the Direction
variable.
3. Modify the Spin script so it does two new things:
Turn clockwise when the Direction variable is 1 and counter-clockwise when the direction variable is -1.
The figure walks to the right when the Direction variable is 1 and to the left when the direction variable is -1.
You will need to figure out how to do this.
4. Click the green flag, answer the question, click the check mark, and see if your figure does what it’s told.
5. Save your project.
Komentarze do niniejszej Instrukcji