Lab 2 – BAND TIME


Description

Sprite needs to get ready for the Badger Game! Help him get everything he needs to perform with the UW Marching Band.

Getting Started

Open SCRATCH by clicking on the icon on your home screen.

Open the file “band prep” by clicking File -> Open…

Click the green flag in the upper right corner to begin.

 

Task #1

Did anything happen? Sprite said “It’s Game Time!” and you could probably move him to the right, but what’s the point of that? Before getting started with programming, it’s time to put your creativity to use and add to the background. In the lower right corner of the screen click the “Stage” icon.

In the middle of the screen, click the “Backgrounds” tab. Click on “Edit” next to the small picture of the background.

 

Write a message or make some small drawings. NOTE: Do not color over the images. Also, do not use red or purple in any of your drawings (you will find out why later). Click “OK” when finished.

Task #2

Now that you have added to your background, it’s time for programming. Click “Sprite in the bottom right corner next to “Stage.” In the center of the screen you will see the instructions for this program. To begin, we will look at the first if statement:

When Sprite touches the hat (red shirt touches red dot on hat), we need him to show himself wearing the hat. To do this we need to change his costume. Under the “Looks” tab in the top left corner, click and drag the “switch to costume” icon and put it below the two blue icons as shown below:

We want the costume to be “HasHat.” Click the down arrow and select “HasHat.”

For the second if statement, we want to show Sprite with the drum once when he walks to it (this is shown in the statement by red shirt touches purple dot on drum). As with before, click and drag “switch to costume” and put it in the if statement block:

 

Once you are finished with this, click the green flag to make sure your program works.

Task #3

Similar to what you did in Lab 1, you can pick a key to press to show an ending message (if you don’t remember, look back at Lab 1). Change the information in the last if statement to select a key. For the end message, try writing something about UW-Madison, marching band, or football games.

 

Challenge

If you would have used purple or red (specifically the purple and red used for the dots on the hat and drum) when you drew pictures for the background, what would have happened to your program? Try it out if you can’t guess.

CS302

The Wisconsin Idea Project