Page 62 - IT_V5.0_Class6
P. 62

Events blocks and their functions are as follows:

                   Block                                 Explanation


                                                         It starts the script when the green flag is clicked.




                                                         It starts the script when the specified key is pressed.





                                                         It starts the script when the sprite is clicked.



                                                         It starts the script when the  backdrop  switches to the
                                                         specified backdrop.



                                                         It starts the script when the specified broadcast message
                                                         is received.


                                                         It sends the specified broadcast message to trigger other
                                                         scripts that are waiting for this message.

                                                         It sends the specified broadcast message and waits until
                                                         all scripts triggered by this message are completed before
                                                         continuing.

                  Example 5: Make a sprite glide across the screen and rotate upon touching the edges when the
                  spacebar is pressed.



































                    60    Information Technology (V5.0)-VI
   57   58   59   60   61   62   63   64   65   66   67