Step 3 – Captain America Continued (STEM)

Goal:


Our next step is to make captain America send a message once you have found him.

We will code our game so that if Captain America is clicked, he will display some text and disappear after broadcasting an event.

Steps:

  1. Click on Events.
  2. Drag  When this sprite clicked to an empty space.
  3. Click on Looks.
  4. Drag two  Say for 1 seconds blocks underneath the event block.
  5. Type You Found Me! and Next level!
  6. Click on Events.
  7. Drag  Broadcast under the Say blocks and select message1.
  8. For the last block, Drag a  Hide block over from the Looks tab.

Code: