Scratch Cookbook
eBook - ePub

Scratch Cookbook

Brandon Milonovich

Share book
  1. 262 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Scratch Cookbook

Brandon Milonovich

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Scratch 2.0 is an easy to use programming language that allows you to animate stories and create interactive games. Scratch also gives you the capability of using programming to calculate complicated calculations for you.

Scratch Cookbook will lead you through easy-to-follow recipes that give you everything you need to become a more advanced programmer.

Scratch Cookbook will take you through the essential features of Scratch. You'll then work through simple recipes to gain an understanding of the more advanced features of Scratch.

You will learn how to create animations using Scratch. Sensory board integration (getting input from the outside environment) will also be covered, along with using Scratch to solve complicated and tedious calculations for you. You'll also learn how to work through the exciting process of project remixing where you build on the work of others.

Scratch Cookbook will give you everything you need to get started with building your own programs in Scratch that involve sounds, animations, and user interaction.

Approach

A practical approach with hands-on recipes to learn more about Scratch and its features.

Who this book is for

Scratch Cookbook is great for people who are still relatively new to programming but wish to learn more. It assumes you know the basics of computer operation. The methods of using Scratch are worked through quickly with a focus on more advanced topics, though readers can move at their own pace to learn all the techniques they need.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Scratch Cookbook an online PDF/ePUB?
Yes, you can access Scratch Cookbook by Brandon Milonovich in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Programación orientada a objetos. We have over one million books available in our catalogue for you to explore.

Information

Scratch Cookbook


Table of Contents

Scratch Cookbook
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
More information
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Getting Started with Scratch
Introduction
Starting up Scratch
Getting ready
How to do it…
How it works…
See also
Deleting the default sprite
Getting ready
How to do it…
There's more…
Adding a custom sprite
Getting ready
How to do it…
Adding a pre-made sprite
Getting ready
How to do it…
There's more…
See also
Changing the stage background
Getting ready
How to do it…
There's more…
See also
The Hello World project
Getting ready
How to do it…
How it works…
There's more…
Adding some motion
Special sprite settings
Pointing towards the mouse
Duplicating code
See also
2. Storytelling
Introduction
Adding words to a sprite
Getting ready
How to do it...
How it works...
See also
Adjusting the timing
Getting ready
How to do it...
How it works...
There's more...
See also
Sprites interacting with other sprites
Getting ready
How to do it...
How it works...
There's more...
See also
Basic broadcasting and receiving
Getting ready
How to do it...
How it works...
The broadcast block
The receive block
More about the code
There's more...
Triggering an event with a click
Changing the background
See also
Resetting parts of a program
Getting ready
How to do it...
How it works...
There's more...
See also
Other fun graphic effects
Getting ready
How to do it...
How it works...
There's more...
Fisheye
Whirl
Pixelate
Mosaic
Brightness
Ghost
See also
3. Adding Animation
Introduction
Changing sprite costumes
Getting ready
How to do it...
How it works...
There's more…
Making it dance
Checking the costume number
Switching to a particular costume
See also
Switching backgrounds in a story
Getting ready
How to do it...
How it works...
See also
Adding graphic effects to backgrounds
Getting ready
How to do it...
How it works...
There's more...
A finished message
Adding other effects
Animating the button
See also
Keyboard input to a program
Getting ready
How to do it...
How it works...
There's more...
Using better defined variables
See also
Getting the mouse position
Getting ready
How to do it...
How it works...
There's more...
4. Basic Gaming
Introduction
Creating a moving object
Getting ready
How to do it...
How it works...
There's more…
The simple way
Adding another ball
Getting ready
How to do it...
How it works...
There's more...
See also
Object interaction with a background
Getting ready
How to do it...
How it works...
There's more...
See also
User interaction with a game
Getting ready
How to do it...
How it works...
Using mouse control
Getting ready
How to do it...
How it works...
There's more...
Keeping score
Getting ready
How to do it...
How it works...
Objects disappearing
Getting ready
How to do it...
How it works...
See also
Building a maze
Getting ready
How to do it...
How it works...
There's more...
Using the timer
Getting ready
How to do it...
How it works...
See also
5. Spicing up Games
Introduction
Tracking the best score or time
Getting ready
How to do it...
How it works...
There's more…
Keeping a high score list
Getting ready
How to do it...
How it works...
There's more…
See also
Adding more levels
Getting ready
How to do it...
How it works...
There's more...
6. Bringing in Sound
Introduction
Playing sounds
Getting ready
How to do it...
How it works...
There's more…
See also
Importing a new sound
Getting ready
How to do it...
How it works...
There's more...

Table of contents