Create a conversation with Scratch

Create a conversation with Scratch

Intro

With Scratch, you can create simple stories using different characters. In this example, we will create a simple conversation between two characters.

If you’re not familiar with the Scratch editor interface, see this intro.

This is what we are building (though this is just an outline that you can create your own story from)

Conversation in space

How

The first thing to do is to choose your ‘Sprite’. To remove the default Sprite (Scratch cat), right-click on the sprite icon and choose ‘Delete’.

Delete the Scratch sprite

You can then add a new sprite from the sprite gallery.

Add a new sprite

We can add a backdrop to help set the scene for our conversation to take place. Click on the ‘New backdrop’ option and choose where you’d like to set your story.

Add a new backdrop

Choose whatever backdrop you want for your library. For this example, we’re going to use one of the Space backdrops.

Backdrop library

Now, let’s add our first conversation script.

We start with a ‘When Flag Clicked’ block. It looks like this and you can find it under the Events category:

When flag clicked

This means the script will start running when we click the green flag icon that appears at the top of the stage.

Run the script

Then add a dialogue block. It’s found in the Movement palette. You can add whatever greeting you want here.

Next add a wait block. This gives the pause in the conversation where another character can reply.

Your script should now look like this:

First conversation block

Let’s add a second character for our robot character to talk to. As before, add a new Sprite from the sprite library. Select the new sprite and add a script that continues the conversation.

Second conversation block

The conversation exchange is all about timings. Make sure that each character is given time to say something and hear the reply.

You can see that the length of time the first character is speaking and the time the second character waits match.

You can add additional wait and say blocks to keep the conversation going.

Our first character’s script looks like this:

Character 1 script

And the second character’s script looks like this:

Character 2 script

You can extend the story further with additional sprites and backdrops.

Spaceship

Made with by artefacto

We are Artefacto, a creative technology company specialising in learning and making for the libraries, museums, archives and galleries sectors.