Practice and reinforce the concepts from Lesson 6
Time needed: 30-45 minutes
Get ready for an awesome coding adventure! You'll create 5 super cool Scratch projects that use variables - special boxes that can store and change information! From building a counter to making your own catching game, you'll become a variables master! 🌟
✅ Open Scratch (online or desktop version)
✅ Have your creativity hat on
✅ Remember: Variables are like magic boxes that can store numbers, words, or other information
✅ Create a new Scratch file for each challenge and give it a fun name!
Create your very own counting machine! Watch the numbers go up and down with the click of a button!
Design your controls! Create three fun sprites:
Create a score variable - this will be your counter!
Program the green flag: When clicked, set the score to 0
Make the plus sprite work: When clicked, add 1 to the score
Make the minus sprite work: When clicked, subtract 1 from the score
Make the reset sprite work: When clicked, set the score back to 0
💡 Remember to test each sprite after you program it! Click them to see if they work properly. 🎯
Blocks You'll Need:
scratchset [score v] to (0) change [score v] by (1)
Challenge 2: Time Machine Age Calculator ⏰
Build a magical time machine that tells you how old you'll be in the future!
Instructions
Choose your time traveler! Pick a sprite (maybe a wizard or astronaut?) and a futuristic background
Create 2 special variables:
- Current Age (your age right now)
- Future Age (your age in 10 years)
Set up your program: When the green flag is clicked, set both variables to 0
Make your sprite friendly! Program it to say hello with "Say" blocks
Ask the big question: Program your sprite to ask "What's your age?" and store the answer in Current Age
Do the time travel math! Add 10 to Current Age and store it in Future Age
Reveal the future! Make your sprite say something like "In 10 years, you'll be [Future Age] years old!"tip Try changing the number of years! What if you wanted to know your age in 20 or 50 years? 🚀
Blocks You'll Need:
ask () and wait
() + ()
Create an epic battle between two numbers to see which one is the champion!
Set the stage! Choose a sprite to be your referee and pick an exciting background (maybe a stadium?)
Create battle variables:
Reset the arena: When green flag is clicked, set both variables to 0
Get the competitors!
Declare the winner! Use conditionals to check:
💡 What happens if both numbers are the same? Add an extra check for a tie! 🤝
Blocks You'll Need:
scratchask () and wait if <> then ... else () > () join ()()
🏆 Challenge Yourself!
- Add victory animations for the winning number
- Create a "smaller than" competition too
- Add a third number for a triple battle!
Challenge 4: All About You Quiz Show! 🎤
Create your own interactive quiz show where YOU are the star!
Instructions
Choose your host! Pick a friendly sprite and a fun background (maybe a TV studio?)
Create at least 3 variables to store your info:
- Name (who you are)
- Age (how old you are)
- Favorite color (your top color choice)
Hide the variables: When green flag is clicked, hide all variables from view
Start the show! Make your sprite say welcoming messages like "Welcome to the All About You Quiz Show!"
Interview time! Program your sprite to ask:
- "What's your name?" -> store in Name variable
- "How old are you?" -> store in Age variable
- "What's your favorite color?" -> store in Favorite color variable
Big reveal! Make your sprite announce each fact:
- "Your name is [Name]!"
- "You are [Age] years old!"
- "Your favorite color is [Favorite color]!"tip Make it more exciting by adding pauses between questions and using different "Say" times! 🌟
Blocks You'll Need:
ask () and wait
join ()()
Build your very own catching game where treats fall from the sky!
Choose your game characters!
Create your score variable: Name it based on what you're catching (like "Donuts caught" or "Stars collected")
Set up the game: When green flag is clicked, set your score to 0
Welcome the player! Make your Main Sprite say "Welcome to the catching game!" or something exciting
Make your catcher move: Program the Main Sprite to forever follow your mouse pointer
Create falling objects! Program your catch sprite to:
Catch them! When the falling sprite touches your Main Sprite:
💡 Tip
Start with a slow falling speed, then make it faster as you get better at the game! 🚀
Blocks You'll Need:
forever
when I start as a clone
change y by (-10)
touching [ v]?
Awesome job completing all 5 challenges! You've mastered variables and created some amazing projects!
Submit your Scratch links here
You're now a variables expert! These skills will help you create even more amazing games and stories in Scratch. Keep experimenting and have fun coding!