Page 85 - iPrime_V2.2_class6
P. 85

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.






























                                                                                                                   83
                                                                          Scratch Programming—Game Creation        83
   80   81   82   83   84   85   86   87   88   89   90