In this video you'll program the backdrop to change three times to showcase three projects you'd like to show off and describe.
After each change the sprite will say something about the project.
To start, pick three projects to describe.
Select the stage and click the Backdrops tab.
This starter project includes backdrops for all seven projects that you created in this club.
You might choose projects because they were fun or challenging or maybe just because something funny happened while you were working on them.
Once you choose the three backdrops for your project, program them to change.
Select the Looks menu.
Three blocks here can change the backdrop.
Switch Backdrop To, Switch Backdrop To And Wait, and Next Backdrop.
Next Backdrop switches to the next backdrop in a list so it won't work for this project.
Switch Backdrop To and Switch Backdrop To And Wait work similarly but you compare the Wait version of this block with a When Backdrop Switches To event to wait until all the code under the event has run before moving onto the next piece of code.
That sounds like it'll work well for this project.
Drag out three Switch Backdrop To And Wait blocks and change the values to the names of the projects you want to describe.
If you don't remember the name of a project, click the Backdrops tab to see the name of each.
Then add a When Flag Clicked event and try it out.
Whoa, those changed so fast.
You can hardly see 'em.
That's because you haven't programmed anything to happen on each backdrop.
To fix this, switch over to the cat sprite and program it to say something about each backdrop.
Click Events and drag out three When Backdrop Switches To blocks.
Again, you'll need to change the values of these blocks to the three backdrops you've selected then click Looks and drag a Save For Two Seconds block under each event.
Try it out.
Scratch highlights code as it runs so look at the code to see when each block stack runs.
You'll see that first this code stack runs, the backdrop changes and the cat says, "Hello."
Then the backdrop changes, this code stack runs, and the cat says, "Hello."
And finally the last backdrop change occurs and the cat gives one more hello.
Now that you've programmed the cat to say hello at each backdrop, program it to say whatever you'd like about each project.
Add as many Say blocks as you'd like to describe each event.
Remember, in this time lapse story, you're sharing your experiences in this club with other people.
There's a list of possible things to write about next to this video.
Check out this example that uses a few lines to talk about each project, describes a silly thing that happened while working on the project, and thanks friends.
Now it's your turn.
Select the stage and use three Switch Backdrop To And Wait blocks to change backdrops when the flag is clicked.
Select the sprit and use three When Backdrop Switches To events and Say blocks to describe each backdrop.
- Choose 3 projects to describe.
- Make the backdrops change when the program starts.
- Program a sprite to say something about each project.