-
Introduction
-
Introducing Scratch
- Scratch Ideas
-
Activities Overview
- Scratch Activities Project
-
Algorithms and Programs
-
Write an Algorithm
-
- Sequences
- Loops
- Data: Variables
- User Input
- Conditionals
- Conclusion
Stopping the Dance
Stopping the Dance
We are now going to add another Event, which will make the Cat stop dancing after pressing the x key.
To do this, create a stack of blocks separate to the stacks for making the Cat dance.
This time, drag the when space key pressed block onto the Scripts Area, and select x from the dropdown.
Next, add a stop all block (from the Control section) after the when x key pressed block.
The stop all block will make all of the Scripts in your Scratch program stop. Now, when you press the space bar and make the Cat dance, you can also make it stop at any time by pressing the x key.
Views | |
---|---|
1 | Total Views |
1 | Members Views |
0 | Public Views |
Share by mail
Please login to share this webpage by email.