Page 90 - IT_V5.0_Class8
P. 90

Example 21: Make a sprite draw a hectogon until the stop button is clicked.


























                     BROADCASTING MESSAGES

                  Example 22:  When the green flag is clicked, Sprite 1 broadcasts the message “Hello!”. When
                                Sprite 2 receives “Hello!”, it broadcasts the message “Hi! How are you?”.

























                  Once the message is received by the second sprite, it will broadcast the message for first sprite.



























                    88    Information Technology (V5.0)-VIII
   85   86   87   88   89   90   91   92   93   94   95