Skip to content
https://storage.googleapis.com/files.cs-first.com/Dialogue/Dialogue_theme%20icon.png

2. Program Dialogue Between Characters

Transcript

In this video, you will select a setting and two characters for your story.

This will help set up the story you want to tell.

Then, you will program dialogue between the two characters to start telling your story.

What your characters say is up to you!

You can pause the video to add to your project, or you can watch the entire video, then complete the steps.

To start, open the starter project.

In Scratch, characters, objects, and animals are called Sprites.

Think about the story you want to tell.

Select your first character... and the costumes tab.

Who are the characters in your story?

How do they know each other?

After selecting the first character, click the second sprite... and choose a second character.

Next, add a backdrop to your story to set the scene.

You have many options to choose from, like: the beach..

a castle,... or even the moon.

Choose a backdrop that works for your characters and the story you are telling.

Now that you have characters and a setting, program your story through dialogue.

Select the character that will talk first.

Then, drag out a few “say for 2 seconds” blocks, and connect them.

When you click the block stack, the sprite says “hello!”

Type new text in the blocks to make your character say something.

Think about your character.

Who are they?

How do they know the other character?

What is their personality like?

Think about what they might say to get the audience’s attention.

Add as many “say” blocks as you’d like to start your story.

Next, program the other character to respond.

To do this, add “say” blocks.

Let your audience know how your characters feel and what is happening in your story through dialogue.

Use the characters’ personalities to decide what they should say.

Are they excited… or nervous?

Click the block stack to test.

To make your story start when the flag is clicked, select the events menu...

and add a “when flag clicked” block to the top of the block stack.

Do this for each character.

Test this.

Hmm… Both characters talk at the same time.

To fix this, program one character to wait before responding.

Select the character you want to wait.

From the control menu, add a “wait” block and put it above the “say” blocks.

Change the value to “6 seconds” since that’s how long the other character talks.

Great!

Add more “say” and “wait” blocks to create more dialogue to tell your story.

Using “say” and “wait” blocks to put your lines of dialogue in the right order is an example of “sequencing.”

A sequence is a set of steps done in order.

Like a story, computer code follows a series of steps to complete a specific task.

Test your code often to see if it’s working the way you want it to!

After adding dialogue to your two characters, come back to this page to check out more features to add to your story.

Choose an Add-On

Add Music to Your Story
Add a Third Sprite
Switch Backdrops
Change Costumes
Instructions

Para hacer esta actividad en español, haz clic aquí.

Students

  1. Watch this video with your teacher.
  2. Open the starter project link below, add a backdrop and sequence a conversation between two characters.
  3. Watch the videos below to keep adding to your project.