Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 69 - 2617_JSSPS_C-4
P. 69

    ADVANCED MOTION BLOCKS

                     Motion blocks let you  control your sprite’s movement. You can use them to make your
                     sprite move, rotate or glide in any direction you choose. Some Motion blocks need values for

                     coordinates and directions. Some of the commonly used Motion blocks and their descriptions
                     are as follows:

                                                            This block instantly  moves the sprite to a specified

                                   go to  random position   location, which can be that of another sprite, the mouse
                                                            pointer or a random location.

                                                            This block instantly moves the sprite to a specific location
                                      go to x:  0  y:  0
                                                            (x, y) on the screen.

                                                            This block makes the sprite move smoothly to a specified
                          glide  1  secs to x:  0  y:  0
                                                            location (x, y) over a set number of seconds.

                                                            This block changes the sprite’s position  horizontally,

                                         change x by  10    moving it to the right (positive number) or left (negative
                                                            number).

                                                            This block changes the sprite’s position vertically, moving
                                         change y by  10
                                                            it up (positive number) or down (negative number).

                                                            This block makes the sprite bounce back when it hits the
                                          if on edge, bounce
                                                            edge of the screen.

                                                            This  block  makes the  sprite  point  towards  a  specified
                              point towards  mouse-pointer
                                                            direction (e.g., North) or another sprite.

                     LOOKS BLOCKS

                     Looks blocks changes how a sprite looks or what it says on the stage. They are purple in colour.

                     Some commonly used Looks blocks and their descriptions are as follows:

                                                            This block makes the sprite say something in a speech
                              say  Hello!  for  2  seconds
                                                            bubble for a set number of seconds.

                                                            This block makes the sprite say something in a speech
                                             say  Hello!
                                                            bubble.

                                                                                        Advance Features of Scratch-3  67

| 64 65 66 67 68 69 70 71 72 73 74 |