Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
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.
Inside this, add an "equal" block and the "person talking" variable.
Set the variable to “Isabel” for the “Isabel talk” sprite and “Malik” for the “Malik
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, Isabel says, "That’s not my favorite, but we can get that!"
You can make the sprites say something, change expressions, move, or anything else based
on the user's response.
Have fun, 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.