Page 58 - IT_V5.0_Class6
P. 58

Motion blocks and their functions are as follows:

                   Block                              Explanation
                                                      It moves the sprite 10 steps forward in the direction it is facing.
                                                      If you use -ve number then it moves the sprite backward.

                                                      It rotates the sprite clockwise by 15 degrees.



                                                      It rotates the sprite anti-clockwise by 15 degrees.



                                                      It moves the sprite smoothly to a random position.



                                                      It moves the sprite to the specified x and y coordinates.



                                                      It moves the  sprite  smoothly to  a  random  position in the
                                                      given time.

                                                      It  moves  the  sprite  smoothly  to  the  specified  x  and  y
                                                      coordinates in the given time.
                                                      It points the sprite in the specified direction.



                                                      It points the sprite towards the mouse pointer.



                                                      It makes the sprite bounce back when it touches the edge of
                                                      the screen.

                  Example 1: The sprite moves 20 steps when the green flag button is clicked.

                  Follow the given steps to create the program:
                  Step 1:  Click on the Events category.
                  Step 2:  Drag and drop the when clicked block to the Script area.






                                                                                              2

                                         1





                  Step 3:  Click on the Motion category.
                  Step 4:  Drag and drop the move block and snap it to below the when clicked block.
                  Step 5:  Type 20 in the value box of the move block.




                    56    Information Technology (V5.0)-VI
   53   54   55   56   57   58   59   60   61   62   63