Please update your browser
Your browser version is not supported by this site. CS First may not work properly.
You can code the letters in your project to talk to each other.
In this video, you will tell a story, just like environmental organizations such as World Wildlife Fund
tell stories about the importance of protecting wildlife and the natural world.
To start, select a sprite to start talking.
This example uses the “G” but select any sprite you like.
Then, select the “looks” menu.
Click, hold, and drag out a “Say for 2 seconds” block.
Click the block to see what it does.
Alright! The sprite says “hello”!
Change the text in the block to what you would like the sprite to say.
This example uses "Where are you Bonobo?” but use the words that work best for your story.
Next, add an event to tell the computer when to run this code.
Select the “events” menu, and drag out a “when flag clicked” block.
This block runs the code when you click the flag at the top of the stage.
Try it out!
Alright! Next, continue your story by making another
sprite say something.
Select a sprite.
Select the looks menu, and add another “say for two seconds” block.
Change the text to what you’d like this sprite to say.
It might answer a question the first sprite asked, or respond to what it said.
In this example, the sprite responds “Over here in the trees.”
To run this code when the flag is clicked, add a “when flag clicked” block.
Click the flag to try it out.
Both sprites talk, but they talk at the same time.
To change this, program one sprite to wait while the first one talks.
Select the “control” menu.
Drag out a “wait” block, and place it before the “say for two seconds” block
that makes the second sprite talk.
Each sprite talks for two seconds, so change the value in the “wait” block to two.
Click the flag to try it out!
Alright! Build out your story with more “say for two seconds” and “wait” blocks.
Test your program often to make sure it’s working how you intend.
Now it’s your turn: Select a sprite to begin talking.
Add a “say for 2 seconds” and “When Flag clicked” block.
Select a second sprite to talk, and add a “When flag clicked,” “Wait,” and “Say for 2 seconds” block.
Continue to add “say” and “wait” blocks to make your sprites talk to each other and
continue your story.
Once you finish these steps, return to this page to select another video.