How to Make a Fruit Catching Game in Scratch | Step-by-Step Block Programming

How to Make a Fruit Catching Game in Scratch Step-by-Step Block Programming

Introduction – Fruit Catching Game in Scratch

Welcome to a super fun and educational Scratch game tutorial! Today, you’ll create your very own Catch the Falling Fruit Game in Scratch — a colorful, exciting, and easy-to-make project perfect for beginners, students, and kids learning to code.

The goal? Catch falling fruits in your basket and try not to lose your lives. Ready to dive in?

Watch this tutorial on Kodex Academy YouTube Channel – Catch the Falling Fruit Game in Scratch | Easy Scratch Game Tutorial by Kodex Academy

Why This Game Rocks for Young Coders

This game is a shining example of how kids or beginners can learn core programming concepts in a playful environment. You’ll:

  • Understand how Scratch projects are structured
  • Learn how to use sprites and backdrops
  • Add multiple costumes to a sprite for variety
  • Create and use variables (score and life)
  • Use conditions, and random positioning – Win when score hits a target; Game Over when lives run out
  • Event-Driven Programming: When green flag clicked, If touching, Broadcast, When I receive, and more
  • Loops: Forever loops for continuous gameplay
  • Randomness & Positioning: Random starting X positions for fruits
  • User Controls: Control a basket sprite with arrow keys
  • Make sprites move and detect collisions
  • Trigger “You Win” and “Game Over” events with broadcast messages
  • Sound Integration & Visual Feedback – Add background music and sound effects
  • Display score and life values on screen
  • Enhance the game with difficulty levels, special fruits, and timers

Step-by-Step Coding Guide using Scratch Block Programming

1. Game Overview

In Catch the Falling Fruit, fruits fall from the top of the screen at random positions. Your goal is to catch them in a basket to score points. If you miss a fruit, you lose one life. The game ends when:

  • You win: Your score reaches the target (default: 10 points)
  • You lose: Your life reaches 0

2. Setting Up Your Project

2.1. Choosing Sprites and Backdrop

  1. Delete the default Scratch cat sprite.
  2. Choose sprites:
    • Fruit sprite (with multiple costumes: apple, banana, orange)
    • Basket or ball sprite (player-controlled by arrow keys)
    • Red line (to detect missed fruit)
    • Text sprites for “You Win” and “Game Over”
  3. Choose a colorful, bright backdrop like “Blue Sky” from the Scratch library.

This foundation ensures your Scratch fruit game tutorial looks polished and is easy to follow.

2.2. Adding Multiple Costumes

Go to the Costumes tab of your Fruit sprite and:

  1. Keep the default apple
  2. Add Banana and Orange from the “Food” category
  3. You now have three costumes for variety
  4. Use “Next Costume” to cycle, ensuring visual variety

2.3. Creating Win and Game Over Screens

Use the Paint option to create text-based sprites:

  • You Win: Blue font, large size
  • Game Over: Red font, large size

These will remain hidden until triggered.

3. Variables: Score & Life

Create two variables:

Go to Variables > Make a Variable for each one.

  • Score → Tracks points earned. Increments with each fruit caught in the basket
  • Life → Tracks remaining lives. Decrements when fruits hit the line

These are core to “Add lives in Scratch game” and tracking player progress.

4. Coding the Fruit Sprite

Explanation:

  • Initial Position: Fruit starts at the top with a random X position.
  • Movement: Constant downward motion.
  • Miss Detection: If Y < -170, you lose a life.
  • Catch Detection: If touching the basket, score increases and sound plays.
  • Costume Change: Switches between apple, banana, and orange for visual variety.

5. Win and Game Over Conditions

5.1. Win Condition:

5.2. Game Over Condition:

Explanation:

  • Broadcast Messages allow different sprites to respond to win/loss events.
  • “You Win” stops the fruit from falling and shows the win message.
  • “Game Over” stops all scripts and shows the loss message.

6. Basket Movement Controls

Explanation:

  • Fixed Y Position: Basket only moves horizontally.
  • Arrow Key Detection: Moves left/right by changing the X coordinate.

7. Displaying Life on Screen

Code (on Red Line Sprite):

Explanation:

  • Keeps the life counter visible throughout the game.

8. Sound and Visual Enhancements

Explanation:

  • Looping background sound adds immersion.

Full Code Snippets (for clarity)

9. Enhancement Features & Customization

9.1 Increasing Difficulty Over Time

Increase falling speed gradually: change y by -speed, then slowly increase speed.

Replace change y by -5 with change y by (-speed).

9.4 Combo Score Bonus

9.3 Adding Power-Ups or Special Fruits

Add rare fruits that give extra points or slow down drop speed.

  • Duplicate fruit sprite, make it golden.
  • Catching it gives +5 score.

9.3 Visual Animations

Animate “You Win” or “Game Over” sprites with spinning or scaling effects.

9.4 Timer Mode – Adding a Countdown Timer

9.5 High Score Tracking

Use cloud variables (if available) or local storage to display and track high scores.

9.6 Responsive Design

Resize sprites dynamically based on device screen or window size for mobile compatibility.

10. Testing and Full Gameplay Flow

Once everything is coded:

  • Test the game thoroughly:
    • Does the basket move smoothly?
    • Are collisions and scoring accurate?
    • Do win/loss conditions trigger correctly?
  • Make adjustments to speeds, sprite sizes, sound volume, or messages as needed.
  1. Click green flag → Score = 0, Life = 3, Fruit drops.
  2. Catch fruit → Score +1, change costume.
  3. Miss fruit → Life -1.
  4. Win at Score ≥ 10 → Show “You Win”, stop fruit.
  5. Lose at Life = 0 → Show “Game Over”, stop all scripts.

11. Conclusion

You’ve just built a complete fruit catcher game in Scratch using:

  • Variables for score and lives
  • Conditional win/loss events
  • Broadcast messaging for sprite coordination
  • Sound effects and costume animations
  • Keyboard controls

This is an excellent Scratch project for students to learn loops, events, conditions, and variables — and you can customize it endlessly!

Call to Action

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: Catch the Falling Fruit Game in Scratch | Easy Scratch Game Tutorial by Kodex AcademyAcademy
  2. Like, comment & share the video
  3. Visit kodexacademy.com
  4. subscribe to the Kodex Academy YouTube channel for deeper Scratch content.

Happy coding with Kodex Academy! 🚀

Learn More with Kodex Academy

At Kodex Academy, we’re passionate about helping students learn coding in creative ways. This project teaches more than Scratch—it empowers young minds to build tools that work in the real world.

Explore more:

Stay updated with new content, free tutorials, and coding challenges!

Further Reading & Links

Recent Posts

How to Make a Math Racing Game in Scratch | Game Concepts and Complete Tutorial

In this tutorial, you’ll learn to build a Math Racing Game in Scratch. Players solve math problems to move their character forward; wrong answers benefit the opponent. It’s a race of speed, accuracy...

How to make Memory Skill Game in Scratch | Card Matching Game in Scratch – Part 2 | Step-by-Step Coding

In this tutorial you'll learn how to make memory skill game in Scratch / card matching game in Scratch. This is a great beginner‑to‑intermediate project for scratch tutorial game, scratch programming...

How to make a Card Matching Game in Scratch | Memory Skill Game in Scratch – Part 1 | Step-by-Step Coding

In this Scratch tutorial, we'll walk you through how to make a card matching game in Scratch, also known as a memory game or skill game. This is a popular beginner project that introduces essential...

Create a Quiz Game in Scratch | Spelling Test in Scratch | Picture Identification in Scratch

Want to make learning spelling fun, visual, and interactive? In this Scratch tutorial, you'll learn how to make a spelling quiz game in Scratch using picture identification, text-to-speech, and...

How to make a Double Jump Game in Scratch | Platformer game in Scratch | Step by Step Coding

How to make a Double Jump Game in Scratch. Scratch is a fantastic platform for beginners to learn programming by making games, animations, and interactive stories. Among the many kinds of games...

How to Use Variables in Scratch | Variable Blocks in Scratch | Complete Tutorial

Introduction: Variable Blocks in Scratch Whether you’re just getting started with Scratch programming or looking to take your projects to the next level, understanding variables and lists is...

How to Make Earth Revolve Around the Sun in Scratch: A Complete Tutorial & Enhancements

Animating Earth revolving around the Sun is a classic beginner/intermediate Scratch animation project. It combines trigonometry (sine & cosine), variables, loops, and visual scripting. Kids can learn...

How to Make a Game in Scratch | Snake Game in Scratch | Step-by-Step Game Coding

In this tutorial, we’ll build a Snake Grid style game in Scratch step by step (very similar to the Kodex Academy example). By doing this, you’ll cover many of the core Scratch building blocks. We will...

How to Use Operator Blocks in Scratch | Full Guide with Live Coding & Examples

One of the most powerful features in Scratch is its Operator Blocks — essential for handling math operations, logic comparisons, and string manipulations...

How to Create a Thirsty Crow Story in Scratch | Animation Story in Scratch for Kids

In this tutorial, you’ll learn how to create the classic “Thirsty Crow” story in Scratch, using simple animation, voice, and sprite actions. This is a perfect project for kids who are new to coding...

How to Create a Dodge Ball Game in Scratch: A Complete Step-by-Step Tutorial for Beginners

This step-by-step tutorial will guide you through how to create a Dodge Ball game in Scratch from scratch! In this game, you’ll control a character trying to dodge falling balls, earn points, and...

How to use Sensing Blocks in Scratch | Scratch programming for beginners | Live Coding with Examples

In today’s session, we’re diving deep into one of the most powerful features of Scratch — Sensing Blocks. These blocks allow your projects to interact with the world, detect touches, respond to...

Build an Egg Shooting Game in Scratch: Step-by-Step Coding | Complete Guide for Beginners

Learn how to create a fun, interactive shooting game in Scratch with this detailed tutorial inspired by classic arcade games. Perfect for kids and beginners looking to dive into Scratch programming!...

How to Make a Maze Game in Scratch | Step by Step Coding | Full Tutorial & Enhancements

Introduction: Why Build a Maze Game in Scratch? If you’re looking for a Scratch beginner project idea that’s fun, interactive, and educational, then building a maze game in Scratch is the...

Scratch Control Block Tutorial: Full Guide with Loops, Conditions, Cloning & Code Examples

“Control blocks” in Scratch are those blocks (from the Control category) that manage the flow of your script: when things happen, how many times they happen, making decisions, repeating actions...

How to Create a Car Racing Game in Scratch – Part 2 – Step-by-Step Coding

Welcome to your ultimate guide on how to make a car racing game in Scratch—a step‑by‑step tutorial. You'll learn Scratch game development techniques, see actual code blocks, and discover enhancements...

How to Make a Hurdle Jumping Game in Scratch – Build a Fun Hurdle Runner with Score & Win Screen

Are you ready to create your very own hurdle jumping game in Scratch—just like the iconic Chrome Dino or Super Mario? 🎮 Whether you're new to Scratch or just looking for your next fun project, this...

How to Create a Car Racing Game in Scratch – Part 1 – Step-by-Step Coding

In this Scratch car racing game tutorial, we’ll walk you through how to create a fully functional, visually exciting, and incredibly fun car racing game using Scratch. In this blog, we’ll cover: How...
Scroll to Top