Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By : Michael Badger
Book Image

Scratch 2.0 Beginner's Guide: Second Edition

By: Michael Badger

Overview of this book

Table of Contents (18 chapters)
Scratch 2.0 Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – designing a clickable table of contents


For our storytelling project, we will create buttons with labels that the user can click to open each joke sequence, which we'll make analogous to a chapter in our Scratch book. We'll refer to these buttons as our table of contents. The steps to design a clickable table of contents are as follows:

  1. Open a new project and delete the default Scratch cat sprite.

  2. Let's import a button sprite into Scratch. For this project, I'm choosing the Button2 sprite from the Things category because it's a vector image and it has two costumes. Change the sprite name to Dog TOC so that we can identify this button as something that appears on our table of contents page.

  3. After you import the button into the project, click on the Costumes tab to open up the paint editor. We need to add a label.

  4. Use the text tool to type Dog in any font you want.

  5. Resize the text and position the word Dog so that it fits inside the button. Because this is a vector image, we can...