Page 67 - 2617_JSSPS_C-3
P. 67

BLOCKS IN SCRATCH


                 Blocks in Scratch are like jigsaw puzzle pieces. They connect vertically to create code. Each
                 block has a unique shape and slot. Simply drag them into the coding area to build a script.

                 Motion Blocks

                 Motion blocks let you control a sprite's movement on the stage, allowing it to move, turn and

                 change direction. They are blue in colour.

                 Some basic motion blocks used in Scratch and their descriptions are as follows:

                                                        This block makes the sprite move forward and backward,
                                                        allowing it to travel in both directions.

                                     move  10  steps    For example: Move 10 steps moves the sprite forward by
                                                        10 steps or Move -10 steps moves the sprite backward by
                                                        10 steps.


                                                        This block makes the sprite turn to the right (clockwise),
                                 turn    15  degrees
                                                        rotating in a circle.

                                                        This block makes the sprite turn to the left
                                 turn    15  degrees
                                                        (anticlockwise), rotating in the opposite direction.


                 Events Blocks

                 Events blocks run the script on the stage and control the start of scripts. Without an Events
                 block, no program will run. They are light yellow in colour.

                 Some of the commonly used Event Blocks with their description are as follows:


                                                        This block starts the script when the green flag is clicked.
                                      when    clicked
                                                        It is used to begin a project.



                                                        This block  starts the  script when  a chosen  key  on  the
                           when   space   key pressed
                                                        keyboard is pressed.



                                                        This block runs the script when the sprite is clicked.
                                  when this sprite clicked


                 Looks Blocks


                 Looks blocks changes how a sprite looks or what it says on the stage. They are purple in colour.





                                                                                               Let’s Learn Scratch  65
   62   63   64   65   66   67   68   69   70   71   72