4.3.3 when I Receive () Block

View

 

This block will stay inactive until it receives the specified broadcast. Once it has been received, the script is executed. It can be started more than once.

Example: Broadcasting a message in Scratch

·         Add two sprites.

·         One sprite broadcasts a message to another, and another has to wait for a specific time.

·         After that time the other sprite will reply to the message.

 

 

Figure 121: Broadcasting messages between sprites

    

Figure 122: Sprite received message and replies

Last modified: Wednesday, 29 September 2021, 5:03 PM