Scratch 2.0 Beginner's Guide Second Edition
Table of Contents
Scratch 2.0 Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Time for action β heading
What just happened?
Pop quiz β heading
Have a go hero β heading
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Welcome to Scratch 2.0
About Scratch
Encouraging everyone to think programmatically
Sample Scratch uses
Computational thinking
Finding a project for you
Making animations
Telling stories
Building games
Programming games of chance
Creating art projects
Sensing the real world
Programming concepts
Using Scratch 2.0
Looking inside a Scratch project
The stage area
The sprites pane
The scripts area
The built-in image editor
Using Scratch 2.0 offline
Encountering Scratch 1.4
Tinkering encouraged
Summary
2. A Quick Start Guide to Scratch
Joining the Scratch community
Time for action β creating an account on the Scratch website
What just happened?
Time for action β understanding the key features of your account
What just happened?
Abiding by the terms of use
Creating projects under Creative Commons licenses
Finding free media online
Taking our first steps in Scratch
Time for action β moving the cat across the stage
What just happened?
Using events to trigger an action
Have a go hero β testing the move block
Time for action β animating a walking motion with the cat
What just happened?
Understanding the basics of a Scratch Project
Saving early, often, and automatically
Time for action β saving our work
What just happened?
Undoing a deletion
Introducing forever loops
Time for action β setting the cat in motion, forever
What just happened?
Controlling a sprite with loops
Time for action β flipping the cat right-side up
What just happened?
Clicking on a block runs the command
Have a go hero β exploring sprite rotation
Adding sprites to the project
Time for action β adding a second sprite and script
What just happened?
Reviewing a video-sensing project
Time for action β reviewing pop the balloon - video starter
What just happened?
Sensing video
Have a go hero β remixing ideas with our starter project
Pop quiz β getting started with Scratch
Summary
3. Creating an Animated Birthday Card
Introducing the paint editor
Time for action β painting a happy birthday sprite
What just happened?
Changing the size of a bitmap image
Choosing bitmap or vector images
Time for action β drawing a vector image
What just happened?
Changing the size of the vector image
Reviewing the image editing tools
Erasing in the vector mode
Filling the stage with color
Time for action β using the fill with color tool to paint the stage
What just happened?
Adding gradients
Time for action β applying a gradient
What just happened?
Time for action β adding more sprites to address the card
What just happened?
Initializing a sprite's starting values
Time for action β hiding all sprites when the flag is clicked
What just happened?
Time for action β displaying happy birthday
What just happened?
Specifying memorable names and comments
Time for action β renaming sprites
What just happened?
Inserting comments into our code
Time for action β adding comments to a script
What just happened?
Transforming sprites with graphical effects
Time for action β transforming sprites
What just happened?
Graphical transformations
Comparing the repeat and forever blocks
Time for action β turning m in a circle
What just happened?
Have a go hero β cleaning up the animations
Time for action β making a sprite fade in with the ghost effect
What just happened?
Two ways to control timing
Have a go hero β animating the butterfly
Pop quiz β reviewing the chapter
Summary
4. Creating a Scratch Story Book
Designing the outline of a barnyard joke book
Time for action β designing a clickable table of contents
What just happened?
Time for action β adding pages to the book
What just happened?
Time for action β adding a sprite to the Backpack
What just happened?
Using the Backpack to store sprites and scripts
Building a joke with say blocks and sounds
Time for action β making a horse talk with the say block
What just happened?
Time for action β synchronizing and animating the horse
What just happened?
Time for action β importing a horse sound
What just happened?
Playing supported sound formats
Positioning a sprite by its coordinates
Time for action β moving the dog based on x and y coord...