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

Published By Kodex Academy — Learn. Build. Innovate.
How to Make a Hurdle Jumping Game in Scratch – Build a Fun Hurdle Runner with Score & Win Screen

Introduction – Hurdle Jumping Game in Scratch

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 step-by-step tutorial will guide you through building an exciting runner-style game complete with jumping mechanics, moving obstacles, a scoring system, game over detection, and a victory screen.

👉 Watch the full video tutorial here: YouTube – Epic Jumping Sprite Over Hurdles Game | Fun Gameplay! by Kodex Academy

Omaansh Aggarwal from Kodex Academy walks you through every part of the game—from sprite setup to game over logic.

Using Scratch’s simple drag-and-drop interface, you’ll learn how to:

  • Animate a jumping sprite (Pico) over moving hurdles,
  • Detect collisions with obstacles,
  • Track and display your score,
  • Play coin sound effects when scoring,
  • Trigger a “You Win” screen when the player reaches a target score,
  • And more!

This is a perfect Scratch game for beginners, kids learning to code, or anyone looking for fun Scratch project ideas. By the end of this tutorial, you’ll have a fully playable game that looks and feels just like the classics—but built entirely by you!

Setting Up Your Scratch Project

Deleting the Cat Sprite and Adding Pico

  1. Open a new Scratch project.
  2. Delete the default cat sprite.
  3. Click “Choose a Sprite,” search for Pico, and select it.
  4. Resize Pico to around 40–50%.

Choosing the Desert Backdrop

  1. Click the “Choose a Backdrop” icon.
  2. Search and select the Desert backdrop.
  3. Duplicate it twice and rename:
    • One to Game Over
    • One to You Win

Creating Game Over and You Win Screens

  1. Open the “Game Over” backdrop.
  2. Use the Text Tool to write “Game Over” (use red color).
  3. Do the same for “You Win” using a celebratory color and font.

Coding the Jumping Sprite in Scratch

Simple Jump Logic with Motion Blocks

Add this to the Pico sprite:

Pico now jumps whenever you press the space-bar!

Enhancing the Jump with Gravity (Optional Advanced Feature)

This adds a realistic gravity effect for more advanced gameplay.

Adding Moving Hurdles (Rock Obstacles)

Animating Rock Movement with Glide Blocks

  1. Add a rock sprite and resize it to 40.
  2. Name it Rock One and duplicate it as Rock Two.

Add this to both:

Fixing Overlap with Timing and Visibility

For Rock Two, stagger its appearance:

Now, both rocks appear at different times.

Game Over Logic – Collision Detection in Scratch

For each rock sprite:

Game over triggers when Pico hits any rock!

Creating a Score System in Scratch

Adding a Score Variable

  1. Go to Variables → Create variable: score
  2. Reset the score when the game starts:

Detecting Clean Jumps for Points

Inside Pico:

Playing Coin Sound on Scoring

  1. Go to the Sounds tab for Pico.
  2. Add a sound like Coin.
  3. In the code:

Now scoring plays a rewarding sound!

Win Condition – Creating the You Win Screen

Broadcasting Win Message

Inside Pico:

Playing a Celebration Sound

Choose a fun sound like “Victory” from the sound library and reduce the volume if needed.

Switching to the Final Backdrop

On the Stage:

Final Gameplay Demo – Test Your Game

Now test everything in full-screen mode:

  • Jump over rocks
  • Earn points
  • Hear coin sounds
  • Win at score 5 or get Game Over

Enhancement Ideas to Take It Further

Add Gravity for Realistic Movement

As shown earlier—add vertical velocity and simulate falling.

Increase Difficulty Over Time

Adjust glide time dynamically using rockSpeed.

Add Bonus Coins or Power-Ups

Create a coin sprite:

Animate the Sprite with Costumes

Common Errors & Debugging Tips

  • Sprite not jumping? Double-check motion blocks and repeat counts.
  • Score not increasing? Ensure “if not touching rocks” is used.
  • Rocks not moving? Make sure the glide blocks are inside a forever loop.
  • Win screen not showing? Check if broadcast and backdrops are set up properly.

Final Thoughts – A Great Scratch Project for Beginners

This game combines the core fundamentals of Scratch coding for kids with fun, creativity, and challenge. You’ve learned:

  • How to use motion and control blocks
  • How to add variables and score logic
  • How to play sounds and change backdrops
  • How to build a runner game in Scratch that mimics popular platforms

Encourage kids to remix the project by:

  • Changing the sprite
  • Using different backdrops
  • Adding more obstacles or themes

Call to Action

  1. Don’t forget to check out the full video tutorial by Kodex Academy here: Epic Jumping Sprite Over Hurdles Game | Fun Gameplay! By Omaansh Aggarwal – Kodex Academy
  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 Create a Health Bar Animation in Scratch: Healthy vs. Junk Food Game Tutorial

How to Make a Health Bar in Scratch | Healthy vs Junk Food Game | Scratch Animation | Kodex AcademyCreating fun and engaging games in Scratch not only helps kids learn coding, but also encourages...

How to Create a Basketball Game in Scratch: Full Step-by-Step Tutorial (Moving Hoop, Jumping Ball & Scoring)

Are you ready to create an exciting basketball game in Scratch with a moving hoop, jumping player, and real-time scoring? This step-by-step Scratch game tutorial is perfect for beginners who want to...

How to Make 3D Shapes in Scratch – Draw Cubes, Pyramids & Cylinders Using Pen Extension

If you’ve ever wondered how to make 3D shapes in Scratch or create 3D geometry using code, you’re about to dive into a creative world of math, animation, and programming fun. Learn how to make...

How to Make Flappy Bird Game in Scratch | Coin Collection Game in Scratch | Scratch Coding for Beginners

Have you ever wondered how people create fun games like Flappy Bird without writing a single line of code? With Scratch programming, anyone — from complete beginners to young creators — can build...

How to Make Day & Night Animation in Scratch (Step-By-Step Full Tutorial)

If you’ve ever wondered how to make day and night animation in Scratch or wanted to bring your stories and games to life with realistic sky transitions, this tutorial is perfect for you! Scratch is...

How to Make a Shooting Game in Scratch | Jet Shooting Game Tutorial (Step-By-Step Guide)

Introduction - Jet Shooting Game in Scratch Scratch Tutorial Game | Scratch Game Tutorial Easy | Scratch Programming Games | Jet Shooting Game in ScratchWant to build your first arcade-style...

Top 5 Animations in Scratch: Jump, Bounce & Fly (Beginner Tutorial + Code)

In this step-by-step guide, we explore the Top 5 animations in Scratch games that will make your projects smoother, interactive, and fun to play. You’ll learn: ✅ How to make a sprite jump ✅ How to...

How to Make a Tic-Tac-Toe Game in Scratch – Easy Scratch Tutorial for Beginners

We are going to build the all-time favourite logic game in Scratch: Tic‐Tac‐Toe. In this game two players take turns making X and O on a 3×3 grid. The first one to get three in a row — across, down or...

How to Make a Real-Time Wall Clock in Scratch | Step-by-Step Scratch Tutorial

If you’ve ever wondered how to make a real-time wall clock in Scratch, you’re in the right place! In this step-by-step Scratch tutorial, we’ll show you how to build a fully functional analog clock...

How to Make a 3-Level Platformer Game in Scratch | Mario-Style Hen Adventure Game

Have you ever wanted to build your own Mario-style platformer game in Scratch? This step-by-step guide will walk you through how to make a 3-level platformer game in Scratch — featuring a jumping hen...

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...
Scroll to Top