We'll be viewing a project from the Scratch website, so open a browser and go to http://scratch.mit.edu/projects/10126867/. Alternatively, you can download the book's supporting code files and open Pop the balloon - video starter.sb2
. The project is from chrisg, a Scratch team member.
When you have the
Pop the balloon - video starter.sb2
project open, click on the See Inside button to see the sprites and scripts of the project. If you're using the offline editor, you'll automatically open the project in the code view.This program uses a webcam, so let's see what it does. Click on the green flag to start it.
You will be prompted with a message that indicates that Scratch wants access to your microphone and webcam. Click on Allow.
The view of your webcam is now on the Scratch stage with floating balloons. Touch the balloons to pop them.
This project has one sprite with two scripts. If you take a look at the script that begins when the...