Time needed: 45-60 minutes
Get ready to become a Math Wizard! 🧙♂️ You'll create an exciting Math Challenge game where players race against time to solve addition and subtraction problems. Your game will test math skills while keeping score and making learning super fun!
By the end of this project, you'll have:
Here are some cool ways other students have made their Math Challenge games special:
- 🌟 Space Math: Questions appear on shooting stars!
- 🏃♂️ Math Race: A character runs forward with each correct answer
- 🎨 Color Challenge: The background changes color for each new question
- 🎵 Musical Math: Different notes play for different operations
Check out this awesome Math Challenge game:

Your Math Challenge will test players with different math operations like:
- ➕ Addition (adding numbers together)
- ➖ Subtraction (taking away numbers)
- ✖️ Multiplication (for future projects!)
- ➗ Division (for future projects!)
Today, we'll focus on making questions with Addition and Subtraction - perfect for becoming a math champion! 🏆
Let's start by setting up everything your game needs to look awesome!

One. Choose Your Main Character (1 sprite)
- Pick a fun sprite to be your quiz master!
- Ideas: A wizard, a robot teacher, or even a talking calculator! 🤖
2. Create 3 Different Screens (backdrops)
- Introduction Backdrop - Where your game starts
- Playing Backdrop - Where the math action happens
- Ending Backdrop - Where you show the final score

3. Set Up Your Game Variables
Create these 4 special variables to make your game work:
- 📊 Number 1 - The first number in your math question
- 📊 Number 2 - The second number in your math question
- 🏆 Score - Keeps track of correct answers
- ⏱️ Timer - Counts down the game time
💡 Stuck? Remember, you can find sprites and backdrops in the Scratch Library. Look for ones that match your game theme!
Time to bring your game to life with code!

Program your introduction:
- 🎬 Switch to your Introduction backdrop
- 🔄 Reset the Score to 0 and Timer to your starting time
- 👻 Hide the Number 1 and Number 2 variables (they're not needed yet!)
- 💬 Make your sprite say hello! Example: "Welcome to Math Challenge!"
- 📢 Explain the game rules in a fun way
Get the game rolling:
- 🎯 Change to your Playing backdrop
- 💬 Encourage the player! Say something like "Let's start the quiz!" or "Ready, set, MATH!"
- ⏰ Start your timer counting down (Hint: Use a repeat loop to decrease by 1 each second)
- 📡 Use broadcast blocks to trigger the first question
Make your questions come alive:
- 🎲 Set Number 1 and Number 2 to random numbers between 1 and 10
- 🔄 Alternate between addition and subtraction:
- Question One: Addition (➕)
- Question 2: Subtraction (➖)
- Question 3: Addition (➕)
- And so on...
- 🧩 Use join blocks to create questions like "What is 5 + 3?"
- 💭 Announce each operation type: "Addition Time!" or "Subtraction Challenge!"
- ✅ Check if the answer is correct:
- Right answer? Add 1 to Score and play a happy sound! 🎉
- Wrong answer? Play a different sound and encourage them to try the next one!
💡 Pro Tip: Test your game after each step to make sure it's working!
Let's make your code super smart and add an awesome ending!

Notice how your addition and subtraction code looks similar? Let's make it cleaner!
Create a custom function:
- 🎯 Go to "My Blocks" and create a new function
- 📦 Put your question-asking code inside
- 🔄 Now you can use this function for both operations!
- ✨ Your code is now shorter and easier to understand!
When the timer reaches 0:
- 🔊 Play an exciting "game over" sound
- 🎬 Switch to your Ending backdrop
- 👻 Hide the timer and score variables from the screen
- 💬 Make your sprite announce "Time's Up!" in a fun way
- 🏆 Use join blocks to show the final score: "You got [Score] questions right!"
- 🌟 Add encouraging messages based on the score:
- 0-5: "Good try! Practice makes perfect!"
- 6-10: "Great job! You're getting better!"
- 11+: "Amazing! You're a Math Star!"
💡 Stuck? Functions are like recipes - you write the steps once and use them many times!
Before you submit, make sure your Math Challenge has all these awesome features:
Game Design:
Game Features:
Ready to take your Math Challenge to the next level? Try these cool ideas:
Sound & Effects:
- 🎵 Add background music that gets faster as time runs out
- 🗣️ Use text-to-speech to read the questions aloud
- 🌈 Make your sprite change colors when you get answers right
- ✨ Add particle effects for correct answers
Game Features:
- 🏅 Create a High Score system that remembers your best score
- 📊 Add difficulty levels:
- Easy: Numbers 1-5
- Medium: Numbers 1-10
- Hard: Numbers 1-20
- ⚡ Make bonus rounds where correct answers give extra time
- 🎯 Add multiplication and division for math masters!
Visual Magic:
- 🎆 Create celebration animations for streaks of correct answers
- 🌟 Make stars appear and collect them for each right answer
- 🎨 Let players choose their own sprite character
- 🏃♂️ Add a progress bar that shows how many questions you've answered
Oh no! The answer box is still showing when time's up?
Don't worry, this happens to lots of coders! Here's how to fix it:
🔍 The Problem: When the timer hits 0, the answer box might still be on screen
💡 The Solution: You need just ONE special block to make it disappear!
🎯 Hint: Look for a block that can stop asking questions...
Can you figure out which block to use? (It rhymes with "stop asking"! 😉)
You did it! Your Math Challenge game is ready to amaze everyone!
Ready to show the world your awesome Math Challenge?
🚀 Submit Your Project Here!
You just created a real math game! That's incredible!
You've learned to:
- Create interactive games
- Use variables to track information
- Program random events
- Build custom functions
- Make learning fun!
You're officially a Game Developer AND a Math Champion! 🏆
Pat yourself on the back - you've done something amazing today! Can't wait to see what you'll create next! 🌟