In this add-on,
you will ask the user a question,
then react to the response.
This is a challenge add-on.
This video will help you get started,
but will not give you all the steps.
You'll figure out the rest on your own.
To get started,
select the sprite that will ask the question.
This example uses the Isabel talk sprite.
Program the sprite to wait until the correct sprite,
in this case Isabel,
talks before it asks the question.
Add a wait until block.
add an equal block in the person talking variable.
Set the variable to Isabel for the Isabel talk sprite
and Malik for the Malik talk sprite.
Add an ask block
and type in a question.
This example asks the user,
what do you think we should have for lunch?
Create a conditional statement
using an if-else block.
Program one action
to happen if the user says one thing,
and another action to happen,
if they say something else.
In this example,
if the user says pizza,
then Isabel says,
"Pizza is my favorite.
"Let's get cheese."
If the user says something else,
"That's not my favorite,
"but we can get that."
You can make the sprite say something,
or anything else based on the user's response.
and get creative.
Now it's your turn.
Program the sprite to wait for its turn to talk
before asking a question.
Program the sprite to ask the user a question.
Create different reactions based on the user's response.
Use the editing tools to draw your own expression or edit the appearance of the sprite.
In "Chatterbox," add a sound that plays each time a character speaks.
Add moving eyebrows to your sprites' expressions.
Add an object related to the story.
As the user a question and react to the response.
Sign in to save your project and track your progress.