User Guide
Table Of Contents
106
Masking the Awkward Areas
To hide the two areas at the far left and far right of the Stage
where the scrolling does not work properly, create a new sprite
that adds 20 step (or pixel) thick black borders around the Stage.
Name this sprite Border, and add the following script:
Adding the Background Music
Arcade games from the time period when Double DragonĀ® was
released have background music that plays in a loop. You can
use any .wav or .mp3 file for this.
To import a file to use as background music in Scratch:
1. In the Sprite List, click Stage.
2. In the Scripts Area, click Sounds, and then click
Import.
3. Browse to the file, click it, and then click OK.
To play the sound when Level 1 starts:
1. In the Scripts Area, click Scripts.
2. In the Blocks Palette, click Control. Then drag a
when I receive block over to the Scripts Area.
3. On the when I receive block, click the down arrow
and then click Level1.
4. Drag a forever block over to the Scripts Area and
attach it underneath the previous block.
5. In the Blocks Palette, click Sound. Then drag a play
sound until done block over to the Scripts Area
and snap it in the middle of the forever block.
6. On the play sound until done block, click the down
arrow and then click the name of the background
music.