Saving the world is easier when heroes work together.
In this video, you’ll add another character to your project to support your hero.
To begin, choose a sprite to be your hero’s helper.
Move your second sprite wherever you want on the stage.
Click on your new sprite.
Then, drag out as many say blocks as you want to make the sprite speak.
Update the text to make the sprite talk about how they work together with your hero.
Add a “when flag clicked” event from the Events menu to your “say” blocks.
Click the green flag to test.
Hmmm... the sprites speak at the same time.
Fix this by adding a “wait” block from the Control menu after the “when flag clicked” event for the new sprite.
Select your hero sprite, and look at the dialogue code to see how long your hero speaks.
This is how long your new sprite should wait before speaking. Select the new sprite again,
and update the value in the “wait” block to match how long your hero speaks.
Test your code again.
Great job, it works!
If you would like to add another hero sprite that was created for this project, duplicate your hero sprite.
Then, select your duplicate sprite,
and go to the costumes tab.
Choose a new costume to be your second hero.
Keep in mind that this new sprite has the same code as your hero sprite,
so it will perform any actions you have programmed for your hero.
If you’d like to make this sprite talk, edit the “say” blocks
and add a “wait” block.
Once you add a new sprite to your project, come back to this page to check out other videos to try!
Make your hero move up and down when arrow keys are pressed.
Program buildings to move across the screen, so your hero appears to fly.
Set the scene for your hero by adding sound to your project.
Help your hero do great things with this spinning move.
Create a game by programming your hero to collect objects.
Add another character to help your hero.
Use the Paint Editor in Scratch to draw your own hero.
Para hacer esta actividad en español, haz clic aquí.
Sign in to save your project and track your progress.