Page 130 - TGPT_V5.0_C5_Flipbook
P. 130
Example 1: To use the switch backdrop to block.
Example 2: To use show and hide block.
SENSING BLOCKS
Sensing blocks in Scratch sense the input from the keyboard or the mouse at the time of
execution of a script. Some of the sensing blocks and their functions are given below:
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, another sprite 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.
128 Premium Edition-V

