PacktLib: Scratch 2.0 Beginner's Guide: Second Edition

Scratch 2.0 Beginner's Guide Second Edition

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Welcome to Scratch 2.0

About Scratch

Finding a project for you

Using Scratch 2.0

Summary

A Quick Start Guide to Scratch

Joining the Scratch community

Time for action – creating an account on the Scratch website

Time for action – understanding the key features of your account

Taking our first steps in Scratch

Time for action – moving the cat across the stage

Time for action – animating a walking motion with the cat

Time for action – saving our work

Introducing forever loops

Time for action – setting the cat in motion, forever

Time for action – flipping the cat right-side up

Adding sprites to the project

Time for action – adding a second sprite and script

Reviewing a video-sensing project

Time for action – reviewing pop the balloon - video starter

Summary

Creating an Animated Birthday Card

Introducing the paint editor

Time for action – painting a happy birthday sprite

Time for action – drawing a vector image

Time for action – using the fill with color tool to paint the stage

Adding gradients

Time for action – applying a gradient

Time for action – adding more sprites to address the card

Initializing a sprite's starting values

Time for action – hiding all sprites when the flag is clicked

Time for action – displaying happy birthday

Specifying memorable names and comments

Time for action – renaming sprites

Inserting comments into our code

Time for action – adding comments to a script

Transforming sprites with graphical effects

Time for action – transforming sprites

Time for action – turning m in a circle

Time for action – making a sprite fade in with the ghost effect

Summary

Creating a Scratch Story Book

Designing the outline of a barnyard joke book

Time for action – designing a clickable table of contents

Time for action – adding pages to the book

Time for action – adding a sprite to the Backpack

Building a joke with say blocks and sounds

Time for action – making a horse talk with the say block

Time for action – synchronizing and animating the horse

Time for action – importing a horse sound

Positioning a sprite by its coordinates

Time for action – moving the dog based on x and y coordinates

Time for action – duplicating, flipping, and switching a sprite's costume

Composing custom sound effects

Time for action – creating drum sound effects

Time for action – integrating the dog's joke sequence

Navigating the story and coordinating scenes

Time for action – hiding the table of contents

Time for action – displaying the dog scene

Time for action – navigating back to the table of contents

Summary

Creating a Multimedia Slideshow

Importing photos as backdrops

Time for action – importing photos from files

Working with images

Adding slideshow controls to display images

Time for action – flipping through the photos

Playing and recording sounds

Time for action – adding a sound from Scratch's library

Time for action – recording sounds in the sound editor

Editing sounds

Time for action – editing a recorded sound

Time for action – appending a sound

Time for action – adding sound effects to recordings

Using x and y coordinates to find the position of the mouse's pointer

Time for action – using mouse location to hide arrows

Time for action – providing user instructions

Displaying a project in presentation mode

Time for action – presenting a fullscreen slideshow

Summary

Making an Arcade Game – Breakout (Part I)

Learning about the Breakout game

Time for action – importing and playing the Pong starter project

Time for action – adding the left and right arrow controls

Time for action – determining if the ball is below the paddle

Time for action – adjusting the center of a sprite costume

Cloning to create identical sprites

Time for action – drawing bricks

Time for action – cloning bricks

Time for action – breaking bricks when I start as a clone

Ricocheting with the point in direction block

Time for action – changing a sprite's direction

Time for action – setting the starting position and the direction

Time for action – ricocheting off bricks

Defining a variable to keep score

Time for action – adding a score variable

Summary

Programming a Challenging Gameplay – Breakout (Part II)

Implementing lives

Time for action – adding a variable to track lives

Time for action – checking for game over

Adding more bricks to the level with a custom block

Time for action – creating a second brick

Time for action – drawing rows of bricks with custom blocks

Time for action – coordinating the ball play

Increasing ball speed and difficulty

Time for action – increasing ball speed

Time for action – decreasing the paddle size based on the clones' costume

Time for action – detecting when we clear the level

Keeping the score using cloud variables

Time for action – keeping a global scoreboard

Summary

Chatting with a Fortune Teller

Creating, importing, and exporting lists

Time for action – creating lists to store multiple values

Time for action – importing fortunes to a list

Prompting the player for a question

Time for action – asking a question

Time for action – validating the seeker's question

Time for action – selecting a random fortune

Time for action – counting our fortunes with mod

Time for action – creating a custom say fortune block

Time for action – ensuring grammatically correct questions

Creating a keyword scanner

Time for action – scanning a text string to build a list of words

Summary

Turning Geometric Patterns into Art Using the Pen Tool

Drawing basic shapes

Time for action – drawing our first square

Time for action – building on the square

Time for action – enabling the user to create custom shapes

Time for action – turning triangles into pinwheels

Time for action – creating a custom shapes procedure

Time for action – plotting x,y coordinates to draw a square

Understanding and using color

Time for action – coloring our shapes

Time for action – finding a color picker workaround

Time for action – creating a color palette

Time for action – limiting color values with a slider

Creating asymmetrical patterns

Time for action – creating an explosion

Turning straight lines into string art

Time for action – animating a radar screen

Time for action – breaking out of the circle

Summary

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Connecting a PicoBoard to Scratch 1.4

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Index