(Added to the See Also bit.)
Line 6: Line 6:
 
| type      = [[Hat Block|Hat]]
 
| type      = [[Hat Block|Hat]]
 
}}
 
}}
The '''When I Receive ()''' [[Blocks|block]] is a [[Control Blocks|Control block]] and a [[Hat Block|Hat block]]. [[Script|Scripts]] that wear this block will activate once the specified [[Broadcast|broadcast]] has been sent.
+
The '''When I Receive ()''' [[Blocks|block]] is a [[Control Blocks|Control block]] and a [[Hat Block|Hat block]]. [[Script|Scripts]] that wear this block will activate once the specified [[broadcast]] has been sent.
 +
 
 +
The block's default value is the first [[broadcast]], alphabetized.
 
==Example Uses==
 
==Example Uses==
 
[[Broadcast | Broadcasts]] are used to activate [[Script|scripts]] at certain times - for scripts to activate once the broadcast is sent, those scripts must wear the '''When I Receive ()''' block. Some common uses are:
 
[[Broadcast | Broadcasts]] are used to activate [[Script|scripts]] at certain times - for scripts to activate once the broadcast is sent, those scripts must wear the '''When I Receive ()''' block. Some common uses are:

Revision as of 18:52, 2 March 2011

When I Receive ()
When I Receive ().png
Category Control
Type Hat

The When I Receive () block is a Control block and a Hat block. Scripts that wear this block will activate once the specified broadcast has been sent.

The block's default value is the first broadcast, alphabetized.

Example Uses

Broadcasts are used to activate scripts at certain times - for scripts to activate once the broadcast is sent, those scripts must wear the When I Receive () block. Some common uses are:

File:Disabling a project.png

  • When a button on the menu is clicked, all the other buttons must disappear
  • When a scene must be set
  • Effective communication with scripts or sprites

See also