NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Hour of Code: Care for a Virtual Pet

📌 What you will learn

Students create a clickable pet with hunger and happiness variables that react to food and toy sprites.

60-Minute Pacing Plan (Grades 2–6)

Students create a clickable pet with hunger and happiness variables that react to food and toy sprites.

  • 10 min: Design pet sprite and food/play buttons
  • 25 min: Connect buttons to hunger and happiness variables
  • 15 min: Add speech bubbles when stats get low
  • 10 min: Customize costumes and showcase

Classroom Tips & Next Steps

Encourage students to click the green flag after every 2–3 blocks. If a student gets stuck, ask them what they expected to happen and which block ran right before the surprise.

All 15 Hour of Code Plans Browse more 1-hour Scratch activities. Learn more → Grade-Level Curriculum Guides (K–12) Continue beyond Hour of Code by grade level. Learn more → Interactive Scratch Labs Demonstrate coordinates, angles, logic, and lists live on your projector. Learn more →

This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.