Talk with the sprite
Medium · The sprite asks your name and answers using what you typed.
Interactive tutorial: the editor checks each step by itself.
- Choose a sprite and drag "when flag clicked".
- In Sensing, snap "ask … and wait" below the flag.
- Write the question: "What's your name?".
- Snap "say Hello! for 2 seconds" (Looks) after the question.
- In Operators, drag "join apple banana" into the "say".
- Change "apple" to "Nice to meet you, " and put the "answer" block (Sensing) in place of "banana".
- Click the flag and answer the question!
- Challenge: use "if … then" and "answer = Ana" to reply something special to one name. (challenge)