Page 79 - Trackpad_V1_Book 4_Flipbook
P. 79

Some of the commonly used motion blocks are:




                            Blocks                                        Functions



                        move 10   steps         This block lets the Sprite move forward (in the direction it is
                                                facing).



                      turn    15  degrees       This block lets the turn in clockwise direction.



                      turn    15  degrees       This block turns Sprite in anti-clockwise direction.



                                                This block  gives the  x and  y position  of the sprite  on the
                       go to x: 0  y: 0
                                                stage.

                                                This  block  tells  the  Sprite  to  follow one  of the  two  given
                       go to  mouse-pointer
                                                options: the mouse pointer or a random position.







                          EVENTS BLOCK

                 Events blocks control how the blocks in a script will start to run if a particular action is
                 done. Events block control events and the starting of scripts. They are yellow in colour.




                             Blocks                                           Functions



                                                     This block activates the script when the green flag or Go
                           when    clicked
                                                     button is clicked.

                                                     This  block  activates  the script  when  the chosen key  is
                      when space   key pressed
                                                     pressed.



                        when this sprite clicked     This block activates the script when you click the sprite.












                                                                                                 Blocks in Scratch  77
   74   75   76   77   78   79   80   81   82   83   84