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 – providing user instructions


Based on our current scripts, it's possible for our slideshow to start with no Back or Next arrows on the screen because their display is determined by the location of the mouse cursor. That could be confusing to a user. Let's revise our script to provide some user instruction at the start of the project. Select one of the arrows and add a show block to the when flag clicked block.

  1. From the Looks palette, add a say for () secs block after the show block.

  2. For the text value of the say block, type an instruction to the user (for example, To advance the slideshow hover over this area.).

  3. Increase the time value in the say for (2) secs to 5.

  4. Now select the other arrow sprite and add a show block after the when flag clicked block.

  5. This time, add a wait (2) secs block after the show block. Change the value to 5.

  6. Give the script a go by clicking on the green flag.

The following screenshots shows our revised arrow script:

What just happened?

We updated the script...