3. Sequencing Your Story
In this video you'll sequence your story.
Sequencing means to put something in order.
In order for a story to make sense it must be sequenced.
The beginning of a story catches the readers attention and sets the mood.
Middle events add detail to the story.
In the end the central problem of the story is solved.
To start write the beginning of the story about how you met your friend.
Create your own version of the story how you remember it and keep it secret from your friend.
At the end of this activity you can surprise your friend with how you remember that day.
You might be surprised by how two people can tell the same story in different ways.
Write about something that you discovered you had in common when you first met.
You could even tell a story of how you worked on your first project together.
Click on the sprite representing you.
Use save locks to talk about how you felt that day you met your friend.
Were you nervous or lonely?
Excited or happy?
Did you know something awesome was going to happen that day?
At the top of the code stack place a one flag click block.
Click the flag to watch the beginning of your story.
Your friend isn't there at the beginning of the story, you have to meet him or her.
To hide your friends sprite, click on it.
Then from the looks menu, place a hide block in the scripts area.
To make the sprite hide at the beginning of your program from the events menu place a one flag quick block on top of the hide block.
Click the flag.
Your friend is now hidden and can appear in your story.
Click the stop sign to stop the story.
After the sprite introduces the story, make your friend appear.
From the looks menu place a show block under the hide block.
Test the code by clicking play.
Wait, the friend sprite shows up immediately.
The friend sprite needs to wait until the my sprite is done introducing the story to appear.
Just like a story needs to be told in order, a program needs to run pieces of code in the right order.
Placing code in the right order is called sequencing.
When the flag is clicked, my friend should hide then it needs to wait before it can appear.
From the control menu, place a wait block between the hide block and the show block.
Wait as long as you need to finish the beginning of your story.
In this example, the my sprite talks for two, four, six, eight seconds.
So eight is entered into the wait block.
Tinker with this until it works.
The friend can show up at any time.
Test the code by clicking the green flag.
In this example the my sprite sets the mood at the beginning with the my friend sprite hiding.
When my sprite is finished setting the mood my friend appears. Great.
If you program conversations between sprites the wait block will be very helpful.
Finally, program the end to your story.
What happened when you met your friend?
What was your friend doing?
What did you do together?
The project is more open ended so you will have to use creativity and persistence to finish your story.
Computer scientists rarely write exactly the program they want on their first try.
They learn from their mistakes and keep trying.
Ask your friends and neighbors for help.
The add-ons also contain ideas you can add to your story.
Now it's your turn.
Program the my sprite to begin the story.
Set the mood with say and or looks and motion blocks.
Program the my friend sprite to hide when the flag is clicked.
Wait until the introduction is done then show.
Finish your story.
Use the add-ons for ideas and your friends to help.
- Program the "my sprite" to begin the story. Set the mood with "say," "looks," and "motion" blocks.
- Program the "my friend" sprite to hide when the flag is clicked, wait until the introduction is done, then show.
- Finish your story! Use the add-ons for ideas, and your friends to help.
Sign in to track your progress and earn badges