Page 97 - TP_Play_V2.1_class5
P. 97

Create the given script:


























                 When you click on the green flag bring the mouse pointer on the sun sprite, it

                 starts spinning.

                    Recap



                        Hat blocks always come at the top of a script as they start a script.
                        Stack blocks are the main commands that perform some actions.

                         Boolean blocks are condition blocks which return the values “true” or “false” or
                       the numbers “0” or “1”.
                        Reporter blocks can hold values, which consist of numbers or strings.

                         C blocks are loop blocks which check if a condition is true in the blocks within the
                       loop.
                         The sensing blocks in Scratch sense the input from the keyboard or the mouse at
                       the time of execution of a script.

                        A global variable is used and modified by all the Sprites.
                         A local variable is used and modified by a single Sprite only.

                        Scratch has two conditional blocks:  If…then…..  and If…then….else block.



                                                        Exercise



                 A.  Tick ( ) the correct option.

                    1.  Which blocks return the values “true” or “false” or the numbers “0” or “1”?


                      a.  Boolean                       b.  Hat                           c.  Sensing



                                                                                 Creating a Game in Scratch       95
   92   93   94   95   96   97   98   99   100   101   102