arrow_back Add Another Character
In this video, you will learn how to add another character to your story.
First, go to “choose sprite from library” to pick a second character. This example uses a crab, but you can choose any character you like.
Now, think about how that character might react to the same message received by the dinosaur. In this example, the crab doesn’t like the dancing, so a sad costume was added.
To start, program the other character’s reaction to one of the messages. In this example, the crab switches to a sad costume and says “stop dancing!” Test the code to make sure it does what you want it to do.
Next, make that reaction happen when the narrator sends the message. In this example, the crab should be sad and say “stop dancing!” when it receives the message “Dancing.”
Test your code by clicking on the green flag to make sure the right reaction happens in response to the message.
Finally, make your new character respond to the other messages. In this example, when the main character breathes fire, the crab walks away because it doesn't want to be cooked.
Make sure to test the code for the reaction, then add the “when I receive” block to test the whole program.
Now, it’s your turn: Add another sprite.
Program the sprite’s reaction to the narrator’s messages.
Add “when I receive” blocks to receive the messages.
Make the new character start on stage when the flag is clicked.