Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

3. Racconta una storia


In this video you will learn how to make the sprite talk about the prompt you selected.

To make the Android talk or move, add code to the scripts editor for the Android sprite.

Click on the Android, then the "Scripts" tab and the "Looks" menu. Drag out a "say for 2 seconds" block. Click the block to test it. Great! The Android says "Hello."

Click inside the white space in the "say for two seconds" block. The text "hello" automatically highlights. Think about the story prompt you chose, and type in a sentence that starts to answer that question.

This example starts with, "The game character most like me is Yoshi." Your sentence might start with "My favorite game is..." or "I think kids should play fewer video games because..."

Write a sentence that makes sense for the prompt you selected.

Drag out another "say for two seconds" block, and move it under the first block until it snaps into place. Change the text in the second block to the next sentence for your story.

Click the entire stack of blocks to try out your program. Great! The android says the text in the first block, then says the text in the second block.

Computer scientists, like you, test their code often as they build it, so they can find and fix unexpected behaviors as soon as possible. Try out your code often as you build.

Add more "say" blocks to the stack to tell your full story.

When you have a story you like, make it easy for users of your program to start your story when they click the flag. Click the events menu, and drag a "when flag clicked" block to the top of the stack. Now, the user can start your program by cl icking the green flag at the top of your project. Try it out. Great! The story begins when the flag is clicked. Explore the other blocks in Scratch to add more to your story. Use motion blocks like "glide" and "move" to make your Android take action. Try sound blocks and forever loops to create a music track for your program.

You can always click on a block to try it out before you use it in your program, so don't be afraid to explore and use your imagination!

If you get stuck, your neighbor or your Guru might be able to help you find a solution.

Go ahead and ask them!

Now it’s time to share your project with the Scratch community. Just click the “share” button, briefly describe what it’s about, and tag it so Scratch users can find it.

Scratch is more than just a programming language. It’s a community of like-minded users who share projects, inspiration, and encouragement. Join in by filling out your profile page with what you like to do and what you’re working on in Scratch. Never share personal information, like your home address or last name, on Scratch or any internet site.

Now, it's your turn. Add at least 3 "say" blocks that respond to the prompt you selected. Add text to the blocks to tell your own story.

Add a "when flag clicked" block to the top of the stack to make it easy to start your program.

Before moving on to the add-ons, take a moment to make sure you are signed in to the cs-first website. If you are *not* signed in, you won’t receive a digital badge for completing this activity, so be sure to sign in!

arrow_backward Indietro
Avanti arrow_forward
  1. Aggiungi almeno 3 blocchi "Dire" che rispondano al suggerimento selezionato. Aggiungi del testo ai blocchi per raccontare la tua storia.
  2. Aggiungi un blocco "Quando si clicca sulla bandiera" in cima alla colonna per facilitare l'avvio del programma.