4/13 - Using Broadcast to control game states

Use the following blocks, under "Control" to control how your game starts, ends, and changes:

  • "broadcast" (create new message by clicking on the arrow)
  • "when I receive" (choose which message by clicking on the arrow)

Use these to:

  • Make a transition from the start screen to the gameplay
  • Change the actions of one or more sprites based on an event that happens during gameplay
  • Show a different background based on an event that happens in the gameplay (if the player wins or loses, for example) 
AttachmentSize
BroadcastExample.sb582.25 KB
SavetheDonut.sb515.42 KB