Skip to content
Transcript

In this add-on, you'll add your friend to your story, and create a dialog with them.

To start, add an Android sprite to represent your friend.

Right-click the Android sprite and select duplicate.

Click and drag the sprites to reposition them on the stage.

Next, click the new friend sprite to select it and delete the copied code by dragging it back into the blocks palette.

Choose a new costume to represent your friend by clicking the costumes tab and selecting an option.

Next, program the friend sprite to join the conversation by responding to the first thing your sprite says, which in this example is, My friend and I have five things in common.

Select Events and drag out a when-flag-clicked block to respond to the sprite, select looks and drag out a say-for-two-seconds block.

Add a response to this block, this example will say, Let's share them!

Then click the flag to test.

Great, the friend sprites talk but both sprites talk at the same time.

To fix this, program each sprite to wait while the other talks.

For the friend sprite, click control and add a wait block before the say-for-two-seconds block.

Change the value to two seconds.

Click the flag to test.

Okay great, the friend waited, but now the sprite that represents you needs to wait for the friend to talk.

Select the sprite that represents you, and add a wait block after the first say-for-two-seconds block and change the value to two seconds.

Click the flag to test.

Awesome, now the two sprites don't talk over each other.

Look at these block stacks side by side.

When you click the flag, the sprite that represents you talks and their friend waits then the friend talks, and your sprite waits.

Continue adding say and wait blocks to sequence conversation between you and your friend.

Now it's your turn.

Duplicate the Android sprite and select a new costume for your friend.

Sequence conversation between the two sprites using when flag click, say and wait blocks.

Choose an Add-On

Introductions

Program the sprite to introduce you and your friend.

Prop

Add a prop to your story.

Add Your Friend

Add your friend to your story, and create dialogue with them.

Instructions

  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!