Control blocks are used to control scripts under certain conditions.
What control blocks are?
Control blocks are used to control scripts under certain conditions. Example if a child get time-out, he/she is removed from all the fun activities for certain time (10minutes or 30 minutes). Here the child is controlled by the condition 10 minutes.
In Scratch we have 11 control blocks. Most of them are stack blocks.
Here we are not going to learn all the control blocks. Some are advanced (If Then, If Then Else) and not easy to understand for age group 7 to 8. Those control blocks will be explained in Level 2 book.
How to use “wait () seconds” block?
This block allows the scripts to run after certain amount of time. We use this block in stories.
Below is the example how wait block controls the conversation between two characters.
How to use “repeat ()” block?
This block allows to repeat the scripts for given number of times. Same script will run again and again for the given number of times.
How to use “forever” block?
This block allows to run the scripts for ever and never stop (Except you use the block stop all or stop this script).
How to use “if () then” block?
This block allows to trigger an action only when the given condition is satisfied/ true.
How to use “if () then, else” block?
This block allows to execute the instructions held under if when the condition is true. If the condition is false, the instruction held under else get execute.
How to use “wait until ()” block?
This block allows to wait until the given condition is true. If the condition is true, the instruction under this block get execute.
How to use “repeat until ()” block?
This block allows to repeat the code held under until the condition become true. If the condition true stop repeating the code held under this block.
How to use “stop all” block?
This block allows to deactivate all the scripts in the project. After this block runs no more actions.
At the end of the story, you can use this.
How to use “stop this script” block?
This block allows to deactivate the specific script where you use this block. This is like Stop all but it doesn’t stop all the scripts, instead stop only the script it stacks with.
How to use “stop other scripts in sprite” block?
This block allows to stop other scripts in the sprite except the script attached to this block.
How to use “create clone of myself” block?
This block allows to create a clone of the selected sprite. This block is applicable for sprite and not for backdrop.
When the clone is created, it will be on top of the original, you must click and drag to separate.
How to use “create clone of other sprites” block?
This allows to create clone of other sprites. There will be a drop down and you must select which one you want to clone. This block is available for both sprite and backdrop. But its not applicable for backdrop. You can’t clone a backdrop. But you can clone another sprite when backdrop is selected.
How to use “delete this clone” block?
This block allows to delete the clone of the selected sprite.
How to use “when I start as a clone” block?
This block allows to control the scripts under it, when started as a clone. Example ask the sprite to move 50 steps when started as a clone.
1. What are the activities controlling your day-to-day life? Describe one of it. Example weather controls your day-to-day life. In winter you have to wear winter jacket.
2. Do you like Winter or summer? Why?
3. What are the activities you do during the winter and what are the activities you do during the summer?