Your drum skills are improving. Time for a second upgrade! In this step, you will choose which drum to add.
Duplicate the Drum-snare sprite:
The Drum Costumes sprite has lots of drum costumes for you to choose from.
Click on the Drum Costumes sprite and select the Costumes tab.
Choose: a drum for the next upgrade. We chose Conga.
Drag the ‘hit’ and ‘not hit’ costumes of your chosen drum to your new Drum-snare2 sprite:
Name your drum to match the costumes you chose.
Click on the Code tab. Change the code to use the correct costumes and choose a sound for your new drum.
Change the number of beats you earn by clicking the new drum to 5
:
Drag your new drum into position on the Stage:
Next, you need a button so that players can upgrade to this new drum.
Duplicate the Get snare sprite.
Position it in the bottom-right corner of the Stage. Change its name to Get
and then the name of your new drum:
Delete the snare drum from the button costume. Copy and paste the ‘not hit’ costume for your new drum to the button costume.
Click on the Text tool and change the number to 30
to show the cost of the new drum.
Your button should look like this:
This button should hide
at the start, then show
when the player upgrades to the snare drum, so they know which drum they are working towards.
Tip: To delete a block, drag it to the Blocks menu, or right-click and choose Delete Block. On a computer, you can also click on a block and then tap Delete to remove a block.
Add a when I recieve
script that your new drum button will show as the next upgrade when the player gets the Drum-snare drum:
Change the number of beats needed to buy this drum, and the number of beats that are removed, when the player gets this drum.
Also change the message that is broadcast
when the player gets the new drum. Create a new message with the name of your new drum:
Change the when I receive snare
script to broadcast
the name of your new drum. The drum will show
when the player upgrades to the new drum:
Add the Party backdrop.
Add a script to the Stage to switch the backdrop when the player upgrades to the new drum:
Test: Click the green flag to start the game and test that you can earn enough beats to get your new drum.
What happens if you click the button before you have earned enough beats?