In this activity, students code a story or game about someone in their life they consider an everyday hero. They start by opening a starter project in Scratch, then they watch instructional videos to program their own story or game. These example projects (student example1, student example2) show what a student can create if they complete multiple add-on videos in the activity.
By selecting add-on videos that present coding challenges, students will:
Open a starter project and choose a “costume” for a sprite, or character, to represent their hero.
Use event blocks (like “when flag clicked”) to trigger a series of code.
Sequence “say” and “wait” blocks to make their hero speak and have a dialogue with another character.
Program actions to happen using “when key pressed” events.
Move an object across the screen using motion blocks.
Repeat actions using loop blocks.
Program their hero to score points when they perform a certain action.
Draw their own hero using the “Paint Editor” in Scratch. (This add-on video pairs well with the Optional Planning Activity.)
Introduction: Review “Code Your Hero” concept (3 minutes)
To extend this project, consider the Optional Planning Activity, where students reflect on what makes someone a hero and the everyday heroes in their lives.
Introduce the activity:
[say] In this activity, you will choose an everyday hero from your own life. Then, you’ll build a project using code that shows your hero as a superhero! An everyday hero is someone that is kind, caring, supportive or encouraging. They can be a friend, pet, parent/grandparent, coach, or teacher.
[ask] Who will you build your project about?
Transition to CS First: Code Your Hero (50 minutes)
Present the Video 1, Code Your Hero to the entire class. [video below]
Provide the link to the starter project in the chat.
Read instructions to students:
Choose a sprite for your hero,
Add a few “say for 2 seconds” blocks, then
Start your code with a “when flag clicked” event.
Build on your project
Present “Move Your Hero” video and give students time to code independently.
Continue working your way through Vides 2- 4 giving students time to work after each video. You may also work through Videos 5-8 for advanced challenge.
While they’re working:
Check that students are on-task. Look for signs that students might not know what to do, like adding a lot of sprites or dragging out a lot of unrelated blocks.
Talk with students one-on-one about their hero if they have difficulty choosing someone.
Guide students to select another video to add to their project.
Wrap-up: Reflect on activity (7 minutes)
Optional - students can share their projects in Scratch (if they already have Scratch accounts).
Pair students and ask them to review their partner’s project. Answer the following questions (either in writing or in whole-class discussion).
What action was the most difficult to code? How did you figure it out?
What other projects could you create using code?
Code A Hero
Move Your Hero
Make your hero move up and down when arrow keys are pressed.
Fly Over Buildings
Program buildings to move across the screen, so your hero appears to fly.
Add Background Music
Set the scene for your hero by adding sound to your project.
Show Off with a Super Spin
Help your hero do great things with this spinning move.
Keep Score
Create a game by programming your hero to collect objects.
Support Your Hero
Add another character to help your hero.
Draw Your Own Hero
Use the Paint Editor in Scratch to draw your own hero.