Page 89 - Trackpad_ipro 4.1_Class6
P. 89

Tech



                     Funda

                                    To find out the x and y positions on the stage, drag the sprite around and
                                    look at the values of x and y above the Sprites Info Pane.


                 Example 2: Buzzing Bug (Adding Sound)


                 Step 1  Drag the                   block from the Events block menu.




                 Step 2  Drag the                  block from the Control blocks menu.



                 Step 3  Now, drag and place the blocks inside the Forever block as shown in the script. Change
                         the values respectively.

                                          will move the sprite forward.
                                           will play a pop sound.


                                          will pause the script for the specified time before moving to the next block.

                                          will move the sprite backward.


                                       will change sprite’s costume to the next.

                                                  will change the colour of the sprite.


                                          will bring the sprite with a bounce when it reaches the edge of the stage.
































                                                                          Scratch Programming—Game Creation      87
   84   85   86   87   88   89   90   91   92   93   94