Page 83 - TP_Prime_v2.2_Class_5
P. 83

Reporter Blocks


                 Reporter blocks can hold values, which consist of numbers or strings. If

                 you ask, “What is 3 + 3 ?”, it will answer “6”. They have rounded edges.

                   C Blocks

                 As the name suggests, C blocks are C shaped. They are also known                                           CONDITIONAL BLOCKS IN SCRATCH

                 as Wrap blocks. These are loop blocks to check if a condition is

                 true in the blocks within the loop. The C blocks are present in the

                 Control blocks category.

                   CAP Blocks


                 The blocks that end scripts are known as CAP blocks. They have a

                 notch at the top and a flat bottom. They are usually the last blocks                                     81
                 in the script. They are also present in the Control blocks category.


                   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's 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.

                 •                  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.

                 •                       The  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.
   78   79   80   81   82   83   84   85   86   87   88