In this add-on, you will ask the user
a question and make something happen based on the response.
This is a challenge add-on,
so this video will help you get started,
but it won't give you all of the steps.
To get started, decide what you want
to ask the user and what you want to happen
based on their response.
Program a sprite to ask the user a question.
Select a sprite and add an ask block.
Next, add an if/else block that makes something happen,
depending on the user's response.
In this example, this sprite says,
do you want balloons?
If the user says yes, then balloons appear.
If the user does not say yes,
then the sprite says, aw, okay.
Your sprite might ask something like,
is it your birthday?
Do you like computer science?
What is your favorite reptile?
What's the best animation?
You can make almost anything happen
based on the user's response.
Have fun and get creative!
Now it's your turn.
Ask the user a question.
Program different things
to happen based on the user's response.
Animate a tear falling from the character's face.
Add stars spinning around the character's head.
Animate a heart effect.
Animate the characters' mouths to move when they speak.
Program confetti, snow, hearts, or stars to fall from the sky.
Ask the user a question and program a response.
Sign in to track your progress and earn badges