Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Scratch 1.4: Beginner's Guide
Scratch 1.4: Beginner's Guide

Scratch 1.4: Beginner's Guide: Learn to program while creating interactive stories, games, and multimedia projects using Scratch

eBook
Can$12.99 Can$44.99
Paperback
Can$55.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Scratch 1.4: Beginner's Guide

Chapter 1. Welcome to Scratch!

Learn how to create animations, interactive stories, and games the drag-and-drop way using the computer programming language Scratch. Scratch provides an intuitive interface that makes learning to program fun, easy, and well-suited as an educational tool for our children and students.

We don't need to artificially restrict Scratch to the classroom though it makes a fantastic teaching tool. Anyone with a desire to learn a programming language can use Scratch as an introductory language. Perhaps you've tried other languages, such as Ruby, PHP, Java, or Python and had trouble getting started for one reason or another. Even if you can barely create a presentation using PowerPoint or OpenOffice.org, you'll find comfort in Scratch's building-block approach to programming.

After using Scratch, programming will make sense. It will seem easy. It will bring a smile to your face.

Whether you want to improve your digital literacy skills by learning to program or you want to learn a new tool to help you teach your students, here's to happy Scratchin'.

What is Scratch?


Scratch is developed by the Lifelong Kindergarten group at the MIT Media Lab. See http://scratch.mit.edu for more information. The Lifelong Kindergarten group at the MIT Media Lab developed Scratch as a teaching language specifically for 8 to 16 year olds, but there's nothing stopping the rest of us from enjoying the Scratch experience and sharpening our 21st century learning skills.

21st century learning skills

Learning: We do it for life. We should help our children develop skills that will help them keep learning in an increasingly digital environment.

Using Scratch, we learn how to design, think, collaborate, communicate, analyze, and program in a computer language. Many of these ideas incorporate 21st century learning skills. If you'd like more information about 21st century learning skills, visit the Partnership for 21st Century Skills web site at http://www.21stcenturyskills.org.

By the time we make our cat dance for the first time, we'll forget all about the academic research and theories behind Scratch. Instead, we'll be focused on discovering the next idea.

How to use Scratch?

I couldn't begin to suggest every possible way for you to use Scratch; that's why we have an imagination. However, here are a few ideas to get you started.

Use Scratch to teach yourself or your students how to program. That's the obvious one.

Use Scratch to demonstrate math concepts. For example, when it's time to teach variables, set up an interactive game that uses a variable to keep score or moves based on the variable data. Scratch can also demonstrate the X and Y coordinate system.

Inspire your kids to read and write. Find a story and animate each scene, or encourage them to animate the story. Turn their persuasive essays into a Scratch project.

Have a child who only wants to play video games? Make a deal. Your child can play only the games he or she creates with Scratch.

I'm sure you've got a lot of ideas flowing in your mind by now. Keep writing them down no matter how hard, easy, obvious, or silly they seem to be. The next one might be your best idea yet.

Programming concepts


With Scratch, we'll learn how to turn our imaginations into games, stories, and animations, and in the process, we'll learn some common programming concepts. If you're already a knowledgeable programmer, then you'll find out what Scratch has to offer your students.

The Scratch team publishes several resources to help educators, including a Programming Concepts guide, which I've summarized below:

Concept

Description

Program Design

When we design a program, we turn our imagination into something that can be shared with others. We create the flow of the program, the interface, and the actions each sprite takes to tell our story.

Loops (Iteration)

Loops iterate through a series of steps for as long as we tell the program to run the loop. We can use other programming concepts, such as conditional statements, to control the loop.

Conditional Statements

Check to see if a statement is true. For example, if 4 > 0 is a conditional statement.

Boolean Logic

Boolean logic operators include and, or, and not. If 4 > 0 and 4 > 1 is one example.

Variables

Variables store text or numbers for reuse in the program. They come in global and local types. For example, if x > 0 creates a conditional statement where x is 0, 1, 2, or anything else we define.

Arrays (Lists)

Arrays are similar to variables in that they store dynamic data. However, a list stores multiple values in the same way a grocery list stores a group of items.

Events

An action in the program prompts another part of the program to take an action. For example, when the Space bar is pressed, the sprite hides.

Synchronization and Coordination

Programming a sprite to receive a broadcast message from another sprite coordinates a cause and effect. Broadcasting a message and waiting for all the other sprites to act on the broadcast synchronizes the action.

Threads

Creating two scripts to run on the same control enables parallel execution. For example, programming four different sprites to pixelate when the flag (green in color) is clicked creates four threads.

Dynamic Interaction

Dynamic interaction provides real-time input into the Scratch program in order to manipulate the sprite in some way. For example, the position of the mouse is always known, so we can create a sprite that always follows the mouse position.

Random Numbers

Random numbers are picked from the range we specify.

Programming limitations

As of Scratch version 1.4, there are a few limitations with the language. As taken from Scratch's Programming Concepts guide, here are the concepts Scratch does not cover: functions, recursion, exception handling, file input/output, inheritance, parameter and return values, and defining classes of objects.

If that last paragraph sounds like gibberish, don't worry about it.

Scratch anatomy


For those of us with a desire to use geek terms, Scratch provides an Integrated Development Environment (IDE) that enables us to design, program, and run our projects. Don't worry; we'll just call it the Scratch interface from this point forward. You can see it in the following screenshot:

In the following chapters, we will become familiar with the parts of the Scratch interface, so we don't need to spend a lot of time reviewing what each button does. Let's instead stick with the big concepts.

Building blocks

If we review the Scratch interface from left to right, everything we need to create a project is readily accessible. To the left side of the interface, we have categories of blocks that are grouped by the kinds of tasks they perform. They are Motion, Looks, Sound, Pen, Control, Sensing, Operators, and Variables.

Throughout the book, I'll refer to these categories of blocks as palettes.

The palette of blocks available to us as Scratch programmers are analogous to the palette of colors an artist mixes when creating a painting. Each type of block is color-coded so that we can easily identify them in our scripts.

Write the script

When we create our Scratch programs, we build a group of scripts that tell our story. Instead of using words as you're used to reading them on this page, we'll build our scripts from the palette of blocks.

We'll drag, drop, and snap them into place in the Scripts area to create our story. The following screenshot shows a script that was taken from one of the sample projects included with Scratch:

If we read the blocks shown in the screenshot from top to bottom, we should have a good idea of the story this sprite tells. Who doesn't love a knock-knock joke?

To see our story play out, we watch the stage.

Watch the story

When it comes time to review the script, we watch it on the stage. It's here that we get to see our ideas turn into reality.

And just like the stage at the theater, we can see from our screenshot that we can have a cast of characters to entertain us.

Scratch even provides a built-in image editor to help us create and modify our characters, which we call sprites.

Built-in image editor

Scratch includes a simple image editing environment called the Paint Editor that allows us to apply text, color, and shape to our sprites and backgrounds.

The Paint Editor allows us to do the following:

  • Create shapes and text

  • Import and edit images

  • Apply color treatments

  • Resize, rotate, and flip an image

The Paint Editor is available from multiple points within the Scratch interface, as we'll see later in the book.

Interface promotes tinkering

The structure of the Scratch interface makes it easy for us to tinker and explore ideas. As we create, we evaluate our work and determine if the results meet our expectations. It's very easy because everything happens in one interface.

We don't have to compile code, switch windows, upload files to a server, or encounter any number of obstacles to see if our code works. Scratch enables us to modify the program as it runs and see the results in real time.

Learning Scratch


I took a project-based approach in this book. So, instead of working with a single project, each chapter creates something new.

While I may want to tell a story, you may want to create a game, build an animation, or explore an interactive art project. By working with a range of projects, we'll quickly learn and focus on the concepts that matter the most.

The more ideas we generate, the better off we'll be when it comes to helping our children or students learn Scratch. Feel free to adapt the projects in this book to your own needs. Reuse them as needed.

It's true that Scratch will teach us how to program, but it really just provides us a visual framework. We can use this framework to express creative thinking while we learn how to do the following:

  • Design the project's scenes and interfaces

  • Analyze behavior and troubleshoot problems

  • Improve the project through revisions

  • Share our imagination with our peers through our projects

I expect that after we get started, you'll have your own ideas about a project or a variation on the current exercise. Keep a pen nearby and write those ideas in the margin.

Here's a chapter-by-chapter look at what we'll cover in the book.

Welcome to Scratch!

You're reading this chapter right now. You'll find out what we can expect from Scratch and how it can help us teach 21st century learning skills.

Installation

Scratch is a cross-platform application, which means you can use it on Windows, Macintosh, and Linux operating systems. In this chapter, we'll look at the installation procedure on each operating system and even learn how to run Scratch from your USB flash drive.

We'll also make sure your web browser can view Java applets, which is the technology Scratch uses to publish projects on the Web.

Start Scratching

We will explore the Scratch interface and create some simple scripts that demonstrate how easily we can build a project. This is a high-speed tour of Scratch that gets us tinkering and thinking about what's possible.

Sharing is a central philosophy to Scratch. Each project we upload to the community web site will be available under a Creative Commons Attribution-Share Alike license. Since we don't have any work to share, this gives us an idea of where we're heading. We'll demonstrate how to find and download a project to inspire us.

Graphics and Slideshows

In Chapter 4, we will slow down the pace and talk about the concepts in more detail. We will also create two projects; the first will be an animated birthday card, and the second will be a picture slideshow using our favorite photos.

We'll use the Paint Editor to design images for the project and transform those images with various graphic effects. We'll also learn how to control the sequence of our scenes.

Storytelling

We will develop a barnyard humor book that lets us shine as storytellers. We'll find out how to turn our chapters into scenes using Scratch.

Our sprites will change appearances, speak, make noise, and report to specific stage coordinates. The emphasis will be on how to use these elements to tell their story.

Arcade Games

In Chapter 6, we will take a classic pong game that's included with Scratch and give it a little personality. Our Scratch installation comes with a classic looking pong game, so rather than start over, we'll modify it.

The central concepts in this chapter include dynamic interaction and conditional statements to control how our paddle and ball move across the stage. We will also introduce variables as a way to store and retrieve information for use in our programs.

Games of Fortune

Here, we will visit the fortune-teller and learn the answers to all our deepest questions. It might be more appropriate to say we'll build the fortune-teller game, so we shouldn't really trust our "fortunes."

In Chapter 7, we will combine what we know about variables with lists, also known as arrays. We will use the lists to store information about our fortunes and use random numbers to retrieve the data. Variables store dynamic data that we use to determine how our program should behave.

Math and Finance

Chapter 8 proposes the following problem: Would you rather have a dollar today that doubles every day for a set number of days? Or, would you rather have a lump sum of money? We will build the program to answer that question.

This chapter compares the power of doubling versus the accrual of simple interest. We'll make the math problem interactive and allow the user to input custom starting values. Then, we'll show the results in a graphical format using the pen tool.

Share!

We're back to sharing. In Chapter 3, we learned how to download a project from the Scratch web site. In Chapter 6, we transformed a Scratch project to meet our own needs. In Chapter 9, we will give back to the Scratch community by making our own project available on the web site for others to enjoy and adapt.

In the process, we'll review the many ways in which we can promote our project to gain fans. For advanced users, we'll incorporate our Scratch projects on our own web server.

Real-world stimuli

We'll add our own personal touch to Scratch in Chapter 10 by connecting a webcam and a PicoBoard to our computer. The PicoBoard is an add-on piece of hardware that connects to our computer and delivers real-world stimuli to Scratch.

If you don't have a PicoBoard, you can still review this chapter to see what kinds of things you can do. Then, you can decide whether or not you want to get one. For example, this chapter gives us an example of how to program gravity that may be useful in your game whether you use a PicoBoard or not.

To demonstrate the board's light, sound, button, slider, and electrical resistance sensors, we will modify existing projects.

Summary


Imagine. Create. Share. It's the Scratch way. And now that we know that Scratch is good for our brains, let's get started with the installation.

Left arrow icon Right arrow icon

Key benefits

  • Create interactive stories, games, and multimedia projects that you can reuse in your own classroom
  • Learn computer programming basics ñ no computer science degree required
  • Connect with the Scratch community for inspiration, advice, and collaboration
  • Provides hands-on projects that help you learn by experiment and play

Description

If you have the imaginative power to design complex multimedia projects but can't adapt to programming languages, then Scratch 1.4: Beginner's Guide is the book for you. Imagine how good you'll feel when you drag-and-drop your way to interactive games, stories, graphic artwork, computer animations, and much more using Scratch even if you have never programmed before. This book provides teachers, parents, and new programmers with a guided tour of Scratch's features by creating projects that can be shared, remixed, and improved upon in your own lesson plans. Soon you will be creating games, stories, and animations by snapping blocks of "code" together. When you program you solve problems. In order to solve problems, you think, take action, and reflect upon your efforts. Scratch teaches you to program using a fun, accessible environment that's as easy as dragging and dropping blocks from one part of the screen to another. In this book you will program games, stories, and animations using hands-on examples that get you thinking and tinkering. For each project, you start with a series of steps to build something. Then you pause to put our actions into context so that you can relate our code to the actions on Scratch's stage. Throughout each chapter, you'll encounter challenges that encourage you to experiment and learn. One of the things you're really going to love is that, as you begin working through the examples in the book, you won't be able to stop your imagination and the ideas will stream as fast as you can think of them. Write them down. You'll quickly realize there are a lot of young minds in your home, classroom, or community group that could benefit from Scratch's friendly face. Teach them, please.

Who is this book for?

Scratch is a teaching language, so it's ideal for people who want to learn how to program or teach others how to program. Educators and parents will learn how to program using Scratch, so they can use Scratch to teach the latest learning skills to their students and children. No previous computer programming knowledge is required. You only need to know how to perform basic tasks on a computer and this book will teach the rest. You can then use it as a platform to learn more advanced programming languages. Parents, stuck with a child who wants to play video games all night? Make a new rule. He can only play a video game if he programs the game first.

What you will learn

  • Design user interfaces, including sequence, characters, and controls.
  • Think critically and make decisions ñ based on need, program limitations and knowledge level.
  • Get to know the concepts of scratch programming such as loops, conditional statements, variables, arrays, Boolean logic, dynamic interaction, coordination, synchronization, threads, and event handling, and apply it later to other programming languages.
  • Develop a barnyard humor that let s you shine as a storyteller.
  • Debug problems in your design and code.
  • Revise your projects to fix problems and add functionality.
  • Collaborate with the Scratch community by remixing and sharing projects so that you can learn from each other.
  • Communicate with peers and students about the details of your projects.
  • Capture sound, light, touch, and resistance via an external PicoBoard and use it as input for your Scratch projects.

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 13, 2009
Length: 264 pages
Edition : 1st
Language : English
ISBN-13 : 9781847196774
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 13, 2009
Length: 264 pages
Edition : 1st
Language : English
ISBN-13 : 9781847196774
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Can$ 187.97
Scratch Cookbook
Can$69.99
Scratch 1.4: Beginner's Guide
Can$55.99
Deep Reinforcement Learning Hands-On
Can$61.99
Total Can$ 187.97 Stars icon
Banner background image

Table of Contents

10 Chapters
Welcome to Scratch! Chevron down icon Chevron up icon
Installation Chevron down icon Chevron up icon
Start Scratching Chevron down icon Chevron up icon
Graphics and Slideshows Chevron down icon Chevron up icon
Storytelling Chevron down icon Chevron up icon
Arcade Games Chevron down icon Chevron up icon
Games of Fortune Chevron down icon Chevron up icon
Math and Finance Chevron down icon Chevron up icon
Share! Chevron down icon Chevron up icon
Real-world stimuli Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(8 Ratings)
5 star 75%
4 star 12.5%
3 star 12.5%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




David Roys Aug 25, 2009
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Michael Badger, is an experienced author and his experience definitely shines through. This book was a pleasure to read and Michael's humour kept me amused and entertained throughout. The exercises are well-crafted and well-paced, guiding the reader through a series of tasks that gradually introduce new programming concepts and Scratch features. The concept of bugs and debugging was beautifully illustrated through a soccer-ball-heading game that resulted in some unexpected behaviour and a challenge to the reader to figure out the problem and find a solution. As always, Michael provides the solution later on in the section with a full explanation. If, on occasions, I felt lost in an exercise, the confusion was quickly cleared up in the "What just happened" section that followed.The production of this book is nearly flawless and the proof reading and editing team have done a fantastic job, although I'm not sure who was responsible for the little message at the bottom of page 99: "I learned how to use some additional markup tools in acrobat!." My money would be on the proof reader. Oops. The fact that that was the only error I could find worth pointing out is a testament to the quality of this work.The frequent Pop quizzes are a good and, although for the most part, the questions are quite easy, on at least one occasion I would have liked a list of answers to check against rather than having to skim back over the text I had just read; but these are minor niggles and I'm sure Michael could easily put a list of answers on his [...] site.Reading this book won't teach you how to write video games (at least not the sort I'm used to playing), but it is a great introduction to the world of programming and will give you the basic understanding you'll need to get started. If you want your kids to get more from the internet than access to mindless Facebook games, YouTube video blogs, and Tweets, I recommend you give this book a go and get Scratching.I'm a big fan of Scratch and this is a fantastic book. I'm looking forward to working through the exercises once more with my daughter when she's a little older.
Amazon Verified review Amazon
Anne Dec 26, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It is just the manual I need to get further with Scratch. I like the no-nonsense format and the way it gets straight into doing projects.
Amazon Verified review Amazon
MZ May 04, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
great reference book
Amazon Verified review Amazon
eleudson Sep 12, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
With a practical approach, the book has helped me prepare lessons in logic programming using Scratch. The examples help to know the details of this great programming language
Amazon Verified review Amazon
Kelly B Apr 04, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
My son and I have been playing around with Scratch programming software from MIT. I bought the Kindle version of this book and I love highlighting areas for my son to take a look at so that he can learn more about the software. The book has good illustration to familiarize you with the programming interface. It gives good examples to try with Scratch. I like being able to keep the book open in the Windows Kindle app and flip to refer to it while we're programming. This is a good introduction to Scratch.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.