Step 14: New Message

Goal:


Let’s create a new broadcast message to run code when the Asteroid is destroyed.

Steps:

  1. From Events, place a broadcast block.
  2. Click the drop down menu, and create a new message.
  3. Call the message “Destroyed1”.

Code: