Page 78 - IT_V5.0_Class8
P. 78

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 9: Make the sprite moves 10 steps forward when the Green Flag is clicked. When the
                  space key is pressed, the sprite turns 15 degrees clockwise. Additionally, when the sprite itself is
                  clicked, it also turns 15 degrees.


























                  Example 10: 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.



                    76    Information Technology (V5.0)-VIII
   73   74   75   76   77   78   79   80   81   82   83