Scratch Silver III
Scratch Silver II
SCRATCH SILVER I
SCRATCH GOLD III
1 of 3

3.03 First level

Add a new backdrop as the first level in your game, and hide the bug.

The Spotlight backdrop with a bug.

Add another Backdrop

Add the Spotlight backdrop from the Music category.

The 'Choose a Backdrop' icon.

Resize the bug

Click on the bug sprite in the Sprite list. Add a script to change the size of your bug when the backdrop switches to Spotlight:

The bug sprite.

Click on the code to change the size, then drag your tiny bug to a hiding place.

Add code to position your bug:

The bug sprite.

Choose: You can choose a different size and location, if you prefer.

Move to the next Backdrop

When you play the game and you successfully find the bug, the game will switch to the next backdrop. Also, to start the game, you will click on the bug on the ‘start’ screen.

The next backdrop block switches to the next backdrop in the order in which the backdrops are listed when you click on the Backdrops tab for the Stage.

Add a script to your bug sprite to play a Pop sound and switch to the when this sprite is clicked:

The bug sprite.

Make the game start with the Start Screen

Click on the Stage pane and add this code to the Stage:

The Spotlight backdrop.

Test: Click on the green flag to test your project.

You will notice that on the ‘start’ screen, the bug will still have the settings to hide in its hiding place from the first level (in this example, on the disco ball).

Tip: After the last backdrop in the list, next backdrop will switch back to the first backdrop.

Click on the bug sprite in the Sprite list. Add a script to set the size of the bug when your backdrop switches to the start screen:

The bug sprite.

Change the position of the bug

Try to position the bug on the ‘start’ screen.

Your code will make the backdrop switch when you click on the bug! That is not helpful when you are trying to position the bug.

To fix the problem, you need to stop the code from running when you click on the bug.

Click on the green flag to return to the ‘start’ screen.

Click on the bug sprite in the Sprite list and drag the blocks away from the when this sprite clicked block:

Breaking the script.

Try to position the bug again. Drag the bug onto the chalkboard, below the text:

The bug on the start screen

Add code to make sure that the bug is positioned on the chalkboard every time your backdrop switches to the start screen:

The bug sprite.

Join the blocks back together so that the code blocks are under the when this sprite clicked block again:

The 'when this sprite clicked' block joined to the 'play sound' and 'next backdrop' blocks.

Test: Click on the green flag to test your project. Click on the bug to move to the next backdrop. The bug should be big on the ‘start’ screen and small on the ‘Spotlight’ level.

Nothing happens when I click on the bug

Did you forget to join the code back to the when this sprite clicked block?

×
×

Cart