Chitti app logo

Chitti is better in the app

Coins, streaks and builds — free on Android & iOS

Get the app
Chitti logoChitti

Programming (mms)

6 Minutes · Module 6 - Mystery Magic Stick

Scratch Junior messaging for kids: learn how to program turn-taking character dialogues using send and receive message blocks. A Tamil coding lesson.

  • Starting Angel's dialogue with a flag trigger and sound block
  • Using send and receive message blocks to cue Ben's audio
  • Passing a second message back to Angel and adding end blocks
What this lesson teachesRead the lesson as text

Turn-taking dialogue between characters in Scratch Junior is programmed using trigger blocks to send and receive color-coded messages. This allows one character to wait quietly and speak only after another character has finished talking.

Starting the first character's speech

The project opens from the Scratch Junior home screen where saved work appears as Project 1. Angel is selected as the first character to speak in the story. Her script begins by dragging a yellow start-on-flag block into the programming area. Next, the sound option is opened to reveal three recorded audio clips, and the first clip is connected to the flag block so her speech plays as soon as the project starts.

Sending and receiving messages between characters

  • A send message block from the yellow trigger category looks like a closed envelope and sends a signal when Angel finishes speaking.
  • A color must be chosen from the drop-down menu on the send block, such as the blue color used for this message.
  • Ben is selected, and an open envelope block is placed to receive the incoming message.
  • The receive block must be set to the matching blue color so Ben knows the message is meant for him.
  • A sound block containing Ben's recorded audio is attached to the receive block so he begins talking immediately upon receiving the message.

Passing the conversation back

After testing the first exchange in full screen mode and returning with the escape button, Ben is programmed to signal Angel. A new send message block is added to Ben's script, and a different color, red, is chosen from the drop-down menu. Angel is then selected to receive this red message using an open envelope trigger block. Once that trigger is set to red, her remaining recorded clips, mic two and mic three, are attached one after another to continue her dialogue.

Completing and testing the scripts

Every completed sequence of blocks in the project ends with an end block. An end block is attached to the finish of Angel's first sequence, Ben's sequence, and Angel's final reply sequence. Clicking the full screen button and running the project with the flag button allows the entire sequence to play smoothly, with each audio clip triggering the next character's response in the correct order.

Part of the course

Scratch Junior

View course →