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

Scratch Game

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

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.

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.

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.

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.

4. Bullet Shooting

• When SPACE is pressed → shoot bullets upward

Initial Setup

when green flag clicked
hide
forever
  if 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 then
    delete this clone
  end
end

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 then
    change [hits] by 1
  end
end

6. Hit / Explosion

• When enemy is shot → explosion animation → score +1

if 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

7. Enemies Reaching Bottom

• Reduce lives when enemy escapes!

if < AND <(y position) > -150>> then
  wait 0.2 seconds
  change lives by -1
  delete this clone
end

8. Colliding With Player

when green flag clicked
forever
  if then
    change lives by -1
    next costume
    wait 0.4 seconds
    next costume
    wait 0.4 seconds
  end
end

9. Score, Lives & Variables

Create:

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

10. Win / Game-Over

Game-Over

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

You Win

when green flag clicked
forever
  if 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

Movement Jet follows mouse
Shooting Spacebar fires bullet
Enemy Falls downward
Background Scrolls down (illusion of player going up)
Collision Explosion animation
Scoring +1 per kill
Lives −1 per enemy escaped OR hit
Game Over Lives = 0
Win Score = 10

Enhancement Ideas + Code

Enhancement #1: Power-Ups

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

Enhancement #2: Multiple Bullets (Rapid Fire)

when green flag clicked
if 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.

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!