Page 65 - IT_V5.0_Class7
P. 65

Block                             Explanation


                                                    Points the sprite towards the mouse pointer.


                                                    Changes the sprite’s X position by the specified number of
                                                    steps.


                                                    Sets the sprite’s X position to the specified value.



                                                    Changes the sprite’s Y position by the specified amount.



                                                    Sets the sprite’s Y position to the specified value.


                                                    Makes the sprite bounce back when it touches the edge of the
                                                    screen.


                                                    Changes how the sprite rotates.


                                                    Reports the sprite’s current X position.



                                                    Reports the sprite’s current Y position.


                                                    Reports the sprite’s current direction.


                 Example 1: Moving and turning a sprite. Follow the given steps:
                 Step 1:  Drag and drop the when clicked block from the Events category.

                 Step 2:  Drag the move with 10 steps and drop it below the when clicked block.
                 Step 3:   Drag the turn  block
                           and change its  value
                           to 90 degrees.  The                              1
                           sprite moves 10 steps
                           forward    and    then
                                                                                    2
                           turns    90   degrees
                           when  the  green  flag
                                                                           3
                           is  clicked, causing
                           the Cat sprite to
                           rotate and change its
                           position on the stage.








                                                                                              Learning Scratch   63
   60   61   62   63   64   65   66   67   68   69   70