Page 104 - CodePilot V5.0 C3
P. 104

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
                               turn    15  degrees
                                                      (clockwise), 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
                                   when     clicked
                                                      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.









                 102      CodePilot (V5.0)-III
   99   100   101   102   103   104   105   106   107   108   109