Page 76 - Computer - 3
P. 76

Events Blocks


          The Events blocks are used to specify events, which cause scripts to execute. These
          blocks are colour-coded yellow. Some blocks in the Events blocks category are:


                     Block                                              Function


                                       Executes the script when the Go button is clicked.




                                       Executes the script when a specified key is pressed.


                                       Executes the script when the associated sprite is clicked on
                                       Stage.



                   Try This

                                                                                                       Logical Thinking
             Match the block to its correct function.
                        Block                                         Function

                                       •         • Repeats the enclosed stack of blocks indefinitely


                                       •         • Turns the sprite by ‘n’ degrees anti-clockwise


                                       •         • Execute the script when a specified key is pressed



                                       •         • Hides the sprite from the Stage








                   Knowledge Discovery                                                             Subject Enrichment


               More blocks categories can be added to the Blocks palette by clicking the Add Extensions
                     button at the bottom of the Blocks palette and selecting the desired blocks category.




          ADDING A BACKDROP

          The background of the Stage is called the Backdrop. You can add a backdrop to the
          Stage to make it interesting and suitable for the project.




               74
   71   72   73   74   75   76   77   78   79   80   81