Page 113 - C_GPT _V4 _class_5
P. 113
block prompts the user to type the input using the keyboard. It waits for
the user input. No other block runs at that time.
block checks if the sprite touches the mouse-pointer, or the edge. If
the answer is true, then it executes the blocks given after it in the condition. If false, then it
executes other blocks as per the given condition.
block checks if the sprite is touching the colour chosen in the block. If true,
then it executes a set of blocks, else executes another set of blocks.
block checks if the first chosen colour is touching the second chosen
colour. If true, then it executes a set of blocks, else executes another set of blocks.
block checks if the chosen key is pressed by the user. If true, then it
executes a set of blocks, else executes another set of blocks.
Let us create a small script to understand the working of sensing blocks.
Sensing an Input
To add sensing blocks to the script, follow the given steps:
1 Click on the Sensing
block category.
Insert Penguin2
sprite on the 2
stage.
3
Delete the cat sprite.
5 Drag the ask block to the Add Arctic backdrop 4
script area and click on it. to the stage.
Type your name and
click on the tick button 6
or press the Enter key.
More on Scratch 111

