Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 94 - 2607_Trackpad_Pro_5.1_flipbook_C4
P. 94

    Some of the commonly used motion blocks are:

                                 Blocks                                        Functions

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

                            turn    15  degrees      This block lets the Sprite to 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  random position
                                                     options: the mouse-pointer or a random position.

                                EVENTS BLOCK

                      Events blocks controls 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.

                                        What if you could code your own superpower in Scratch? What would your
                                        superpower be, and how would you use it to help others?

                       92   Premium Edition-IV

| 89 90 91 92 93 94 95 96 97 98 99 |