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

Prompting the player for a question


If we wanted to have the seeker and teller interact independently of the player, then the two lists we have would accomplish that. We could randomly pull a question from the seeker's list and then match it up to a response from the teller's list. Our game, however, is going to be more interactive than that.

By using Scratch's ask () and wait block, the teller can prompt the player for a question on behalf of the seeker. In other words, the seeker sprite will represent the human player.

Let's take a look at an example.