Star Student Builder logoStar Student Builder
← 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