5. For this project, use the Scratch
Cat sprite that comes with the
program. You can modify or
replace it later. (You’ll learn
more about creating sprites and
backdrops in the next project.)
To make your sprite talk:
• Go to Looks (purple), and drag the “say [Hello!] for [2] seconds”
block into the workspace, below the first block. It should snap
into place
(Figure
D
)
. Click on the stack of blocks and watch what
happens!
• Type whatever you want your sprite to say right in the white oval
(Figure
E
)
.
• To make it easier for people to read, add a new “say Hello” block for
each line. Change the number of seconds if you want to give people
more time to read the speech bubble
(Figure
F
)
.
6. Now get the person talking:
• Go to Sensing (light blue) and drag an “ask [What’s your name?] and
wait” block to the bottom of your stack
(Figure
G
)
.
• Also drag the oval “answer” block, below the “ask” block, onto the
workspace, but don’t attach it to anything yet. Right click (or double-
click) on the “answer” oval, then click “Duplicate.” You will need a
bunch of “answer” blocks, so copy the original to save time.
D
E F
76
Making Simple Robots, 2nd Edition
Make_Simple_Robots_interior_FIN.indd 76Make_Simple_Robots_interior_FIN.indd 76 4/26/22 1:55 PM4/26/22 1:55 PM