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 for2 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" automaticallyhighlights. Think about the story prompt you chose, and type in a sentence that startsto answer that question.
This example starts with, "The game character most like me is Yoshi." Your sentence mightstart 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 itsnaps 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 thetext 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 findand 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 storywhen they click the flag. Click the events menu, and drag a "when flagclicked" block to the top of the stack. Now, the user can start your program by cl ickingthe green flag at the top of your project. Try it out. Great! The story begins when theflag is clicked. Explore the other blocks in Scratch to addmore to your story. Use motion blocks like "glide" and "move" to make your Android takeaction. 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, sodon'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 whoshare projects, inspiration, and encouragement. Join in by filling out your profile page withwhat 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 tothe 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 yourprogram.
Before moving on to the add-ons, take a moment to make sure you are signed in to the cs-firstwebsite. If you are *not* signed in, you won’t receive a digital badge for completing thisactivity, so be sure to sign in!