Star Student Builder logoStar Student BuilderA Learnerโ€™s Guide
โ† First Moves Std 1โ€“2Project 3 of 3

Two Friends Talking

๐ŸŽฏ Two characters have a short conversation, taking turns.

๐Ÿ’ก The idea behind it

Each sprite has its own code, and they can wait for each other.

๐Ÿงฑ Blocks you will need

when green flag clickedsay โ€ฆ for 2 secswait 2 secondsbroadcast message1when I receive message1

๐Ÿ”จ Build it

  1. Add a second sprite with the cat-face button at the bottom right.
  2. Give the first sprite: when flag clicked โ†’ say 'Hello!' for 2 seconds โ†’ broadcast message1.
  3. Give the second sprite: when I receive message1 โ†’ say 'Hello to you too!' for 2 seconds.
  4. Run it. One speaks, then the other. That is a conversation built out of a message.

๐Ÿš€ Make it harder

  • Add a third line so the first sprite replies again โ€” it will need a second message.
  • Make each sprite move a little as it speaks.

๐Ÿž Bugs you will hit

  • They both speak at once: the second sprite is using 'when green flag clicked' instead of 'when I receive'.

โฌ‡ Need Scratch itself?

Free from MIT, in a browser or as an offline app that needs no connection at all.

Get it โ†’
Ask GuruAcharya Samayeshwar