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

3.04 First upgrade

You will add your first upgrade. The Get snare button will show at the start, so the player knows which drum they are working towards.

Add the Drum-snare sprite to your project and position it on the Stage:

Drag the when this sprite clicked script from the Drum-cymbal sprite to the Drum-snare sprite.

You can copy code from one sprite to another sprite in the Sprite list:

Both sprites will have the code blocks that you have copied. If you are moving the code from one sprite to the other, you can delete the code from the first sprite after you have copied it to the other sprite.

Change the costumes and the drum sound.

Change the number of beats earned to 2:

Test: Try out your project. Make sure that you earn 2 beats when you click on the snare drum.

Upgrades are not available when you start the project. They have to be earned with beats.

Add a script to hide this drum sprite at the start of the project:

A button will show which drum is the next upgrade option and how many beats it will cost.

Duplicate the Get sprite:

Change the visibility to Show and change its name to Get snare. Position it in the bottom-right corner of the Stage:

Click on the Drum-snare sprite and go to the Costumes tab. Use the Select (arrow) tool to highlight the not hit costume of your drum. Click on the Group icon then the Copy icon:

Click on your Get snare sprite and Paste the snare costume. You might need to resize and position it to fit your button:

Click on the Code tab and add a script to show the Get snare sprite at the start of the project:

The upgrade can only be bought if the user has 10 or more beats. In Grow a dragonfly, you learned about making decisions with if blocks.

An if ... else block is used to make a decision and will do different things if a condition is true or false.

Add this code to get the upgrade if the player has enough beats, or say Not enough beats! if they are not able to upgrade:

Let other sprites and the Stage know that the snare upgrade has been bought.

Add a broadcast block to send a new snare message:

Click on the Drum-snare sprite. Add this script:

When you upgrade your equipment, you will be able to play at bigger venues.

Add another backdrop. We chose Chalkboard to play our second gig at school.

Add code to the Stage to switch backdrop when the upgrade message is received:

Tip: Choose a venue that’s a small step up from the bedroom. You want to save bigger venues for later.

Test: Run your project. Try and buy the snare upgrade before you have enough beats.

When you buy the upgrade check: the snare appears, the button disappears, the venue changes and the beats go down by 10.

×
×

Cart