Page 77 - TP_Modular_V2.1_Class5
P. 77

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       75
   72   73   74   75   76   77   78   79   80   81   82