Page 70 - IT_V5.0_Class7
P. 70

Block                                 Explanation

                                                         Starts the script when the sprite is clicked



                                                         Starts the script when the backdrop switches to the
                                                         specified backdrop


                                                         Starts the script when the specified condition is met,
                                                         such as when the loudness is greater than a certain value


                                                         Starts the script when the specified broadcast message is
                                                         received


                                                         Sends the specified broadcast message to trigger other
                                                         scripts that are waiting for this message
                                                         Sends the specified broadcast message and waits until all
                                                         scripts triggered by this message are completed before
                                                         continuing
                  Example 7: When the green flag is clicked, the sprite broadcasts the message “Hello!”.
                  Follow the given steps:

                  Step 1:  Darg the when clicked block to the script area.
                  Step 2:  Drag the broadcast block.

                  Step 3:  Click on the down arrow of the broadcast block.
                  Step 4:  Click on the New message option. The New Message dialog box opens.
                  Step 5:   Type the message name in the New message name text box.

                  Step 6:  Click on the OK button.



























                  Step 7:  Drag and drop the when I receive block.



                    68    Information Technology (V5.0)-VII
   65   66   67   68   69   70   71   72   73   74   75