BlocosIA Wiki Editor

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.

  1. Choose a sprite and drag "when flag clicked".
  2. In Sensing, snap "ask … and wait" below the flag.
  3. Write the question: "What's your name?".
  4. Snap "say Hello! for 2 seconds" (Looks) after the question.
  5. In Operators, drag "join apple banana" into the "say".
  6. Change "apple" to "Nice to meet you, " and put the "answer" block (Sensing) in place of "banana".
  7. Click the flag and answer the question!
  8. Challenge: use "if … then" and "answer = Ana" to reply something special to one name. (challenge)

The blocks of the finished program

• evt_bandeira
• sen_perguntar [TEXTO: Qual é o seu nome?]
• apa_dizer_por [TEXTO: (op_juntar), SEG: 2]

Open in the editor