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

Published By Kodex Academy — Learn. Build. Innovate.
How to make Shooting Game in Scratch Jet Shooting Game in Scratch Kodex Academy

Introduction – Jet Shooting Game in Scratch

Scratch Tutorial Game | Scratch Game Tutorial Easy | Scratch Programming Games | Jet Shooting Game in Scratch

🎮 Want to build your first arcade-style shooting game in Scratch?
In this guide, we’ll build a Jet Fighter Shooting Game with:

  • ✅ Player Jet
  • ✅ Bullet Shooting
  • ✅ Enemies & Explosion Animation
  • ✅ Scrolling Background Effect
  • ✅ Score & Lives
  • ✅ Game Over & You Win screens
  • ✅ Sound Effects

📺 Watch full tutorial here:
👉 https://www.youtube.com/watch?v=ZYHMNVuHNdg

What You Will Learn

  • How to create a player jet & make it follow mouse
  • How to shoot bullets
  • How to create enemy jets with animation
  • How to add scrolling background effect
  • How to detect collisions
  • How to track score & lives
  • How to add win/game-over screens
  • Bonus enhancements

Getting Started: Coding for Jet Shooting Game in Scratch

Setup Scratch

You can code this game using Scratch online:
🔗 https://scratch.mit.edu

  • Click Create to begin.
  • Delete the default cat sprite.

Step-1: Add Sprites & Assets

Required Sprites

  • Jet (Player)
  • Bullet
  • Enemy Jets
  • Explosion Sprite
  • Background 1, Background 2 (for scrolling)
  • Game Over & You Win display

You can import your own, draw inside Scratch, or download similar assets online.

Step-2: Create Scrolling Background

  • This creates an illusion that the jet is moving upwards!

Background Sprite Code

when green flag clicked
go to back layer
go to x:0 y:0
forever
   change y by -5
   if <(y position) < -340> then
        go to x:0 y:345
   end
end

Duplicate this background & change second starting Y to 345.

Step-3: Player Movement

  • Jet follows mouse movement (horizontal)
when green flag clicked
show
switch costume to [player v]
forever
   go to x:(mouse x) y:-131
end

✅ Jet now stays at the bottom and moves left-right.

Step-4: Bullet Shooting

  • When SPACE is pressed → shoot bullets upward

Initial Setup

when green flag clicked
hide
forever
   if <key (space) pressed?> then
       start sound [gunshot v]
       create clone of myself
       wait 0.1 seconds
   end
end

Bullet Clone Behavior

when I start as a clone
show
forever
   set x to (mouse x)
   change y by 10
   if <touching edge?> then
       delete this clone
   end
end

Step-5: Enemy Jets

Spawning Enemy Clones

when green flag clicked
hide
forever
   wait 1.2 seconds
   go to x:(pick random -200 to 200) y:250
   switch costume to (pick random 1 to 4)
   create clone of myself
end

Enemy Behavior

when I start as a clone
show
set size to 100%
set [hits v] to 0
forever
   change y by -5
   if <touching (bullet)> then
        change [hits] by 1
   end
end

Step-6: Hit / Explosion

  • When enemy is shot → explosion animation → score +1
if <hits = (costume number * 7)> then
   switch costume to [5 v]
   wait 0.1 seconds
   switch costume to [6 v]
   wait 0.1 seconds
   switch costume to [7 v]
   change score by 1
   delete this clone
end

Step-7: Enemies Reaching Bottom

  • Reduce lives when enemy escapes!
if <<touching edge> AND <(y position) > -150>> then
   wait 0.2 seconds
   change lives by -1
   delete this clone
end

Step-8: Colliding With Player

when green flag clicked
forever
   if <touching (enemy)> then
       change lives by -1
       next costume
       wait 0.4 seconds
       next costume
       wait 0.4 seconds
   end
end

Step-9: Score, Lives & Variables

Create:

  • ✅ Score
  • ✅ Lives (default = 5)
when green flag clicked
set score to 0
set lives to 5

Step-10: Win / Game-Over

Game-Over

when green flag clicked
forever
   if <lives = 0> then
        show
        switch costume to [game over v]
        broadcast [game over v]
        stop all
   end
end

You Win

when green flag clicked
forever
   if <score = 10> then
        show
        switch costume to [you win v]
        broadcast [you win v]
        stop all
   end
end

Add Sound Effects

  • Bullet sound
  • Explosion sound
  • Background music
when green flag clicked
forever
   play sound [mystery v] until done
end

Full Gameplay Explained

FeatureBehavior
MovementJet follows mouse
ShootingSpacebar fires bullet
EnemyFalls downward
BackgroundScrolls down (illusion of player going up)
CollisionExplosion animation
Scoring+1 per kill
Lives−1 per enemy escaped OR hit
Game OverLives = 0
WinScore = 10

Enhancement Ideas + Code

Enhancement #1: Power-Ups

  • Extra life
  • Faster bullets
when I start as a clone
if <touching player> then
    change lives by +1
    delete clone
end

Enhancement #2: Multiple Bullets (Rapid Fire)

when green flag clicked
if <key (space) pressed?> then
    repeat 3
        create clone of bullet
        wait 0.05
    end
end

Enhancement #3: Difficulty Levels

  • Easy → Slow enemies
  • Hard → Faster enemies
set speed to (5 + floor(score / 5))
change y by -(speed)

Performance Tips

  • ✅ Delete unused clones
  • ✅ Use bitmap objects for lighter size
  • ✅ Optimize background animation

Complete YouTube Tutorial

📺 Watch the complete step-by-step tutorial:
👉 https://www.youtube.com/watch?v=ZYHMNVuHNdg

Conclusion

Building a Jet Shooting Game in Scratch is a fun and beginner-friendly way to learn real game development concepts like sprite animation, event handling, collision detection, scoring systems, and scrolling environments. With only a few lines of block-based code, you’ve transformed simple sprites into a fast-paced action game that challenges players to aim, dodge, and survive.

You now understand how to:

  • Create smooth character movement
  • Generate bullets and enemy clones
  • Animate explosions
  • Track lives and score
  • Display win/game-over screens
  • Add immersive sound effects

This tutorial proves that anyone can build exciting games using Scratch—no prior programming experience required. If you want to go even further, you can add new features such as power-ups, boss fights, multiple levels, dynamic difficulty, and enhanced animations to make your game more engaging.

Whether you want to explore Scratch programming, learn how to make games in Scratch, or simply enjoy building creative projects, this jet shooting game is the perfect start. Keep experimenting, keep improving, and most of all—have fun coding!

Call to Action

  1. Don’t forget to check out the full video tutorial: How to make Shooting Game in Scratch | Jet Shooting Game in Scratch | 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