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:
- Click on Events.
- Drag When this sprite clicked to an empty space.
- Click on Looks.
- Drag two Say for 1 seconds blocks underneath the event block.
- Type You Found Me! and Next level!
- Click on Events.
- Drag Broadcast under the Say blocks and select message1.
- For the last block, Drag a Hide block over from the Looks tab.