m (See Also: capitalized)
(fixed grammatical mistakes)
Line 7: Line 7:
 
| default    = First [[broadcast]] (alphabetized)
 
| default    = First [[broadcast]] (alphabetized)
 
}}
 
}}
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 '''When I Receive ()''' [[Blocks|block]] is a [[Control Blocks|Control block]] and a [[Hat Block|Hat block]]. [[Script|Scripts]] that wear this block will be invoked once the specified [[broadcast]] has been sent by a calling script.
 
==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 invoke [[Script|scripts]] when certain evaluations are met - for scripts to activate once the broadcast is sent, those scripts must wear the '''When I Receive ()''' block. Some common uses are:
 
*Preparing a change in the [[project]]
 
*Preparing a change in the [[project]]
  
 
[[File:Disabling_a_project.png]]
 
[[File:Disabling_a_project.png]]
  
*When a button on the menu is clicked, all the other buttons must disappear
+
*hiding select sprites when a certain condition is met under a particular evaluation.
 
*When a scene must be set
 
*When a scene must be set
 
*Effective communication with scripts or [[Sprite|sprites]]
 
*Effective communication with scripts or [[Sprite|sprites]]

Revision as of 17:46, 29 December 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 be invoked once the specified broadcast has been sent by a calling script.

Example Uses

Broadcasts are used to invoke scripts when certain evaluations are met - 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

  • hiding select sprites when a certain condition is met under a particular evaluation.
  • When a scene must be set
  • Effective communication with scripts or sprites

See Also