Project 115: Magic Cups

7. Hide and reveal your mystery sprite!

Let's make sure the cups actually hide your sprite, and then reveal your mystery sprite when you click on the cup!
Starting point file for this challenge

Your goal

Steps

1. Add a "when green flag clicked" block

Click back on your cup sprite. Let's add another yellow "when green flag clicked" block! 

2. Add a "switch costume to ____" block

This is a purple looks block! It's the 5th block. Can you make sure the block switches to your first costume? This is the picture where the cup is lowered. 

3. Add a "go to front layer" block

This is another purple looks block! It's near the bottom of the purple blocks. 

4. Add a "when this sprite clicked" block

This is a yellow block! It's the 3rd yellow block. This one will not connect to our old code - we're making a new chunk of code! Put this yellow block wherever you want. 

5. Connect a "next costume" block to the new yellow block

This is a purple block. It's the 6th purple block! Connect this block right below the "when this sprite clicked" block. 

6. Stop the game when you click the cup

We want the game to end when the player makes a choice, so we need to add a "stop all" block after the "next costume" block. You can find "stop all" in the bottom of the light orange "Control" section.