How to make Shooting Game on Scratch (Duck Hunt Game)

About Duck Hunt Game:

This is a remake of the classic video game Duck Hunt.

In Duck Hunt Game, you have to shoot as many flying ducks as possible within limited time. The ducks will enter from the left of the screen and you need to position the cross hairs to shoot the duck. The more birds you aim at in the given time, the higher will be your score. This game is quite challenging and can test a player’s speed and reaction time.

You can change the theme if you like, e.g. Alien shoot…

Games such as first-person shooters, rail shooters, or even Fruit Ninja have a similar design.

For this game we need two sprites: a bird and a red crosshair.

The two main things we need to code in our game:

  1. moving the target;
  2. shooting the target.

Add a timer variable to your program which makes the game last 30 seconds. Make the variable appear on the screen as it counts down from 30 to 0.

How to make Shooting Game on Scratch

Setting the Stage

Click the Backgrounds tab. Click Import and, from the outdoors folder, select wooden-house

Make the Ducks Fly

We need to create scripts to make the duck fly. We will begin by making the ducks wings flap. Begin by positioning the duck in the centre of the stage.

We should program the duck sprite so that it create clone of duck every 0.5 to 1.5 seconds.

We now need to make the duck move across the screen. We begin with the duck at the left of the screen and move it to the right. since we do not want all of them to appear from the same position. To do this we need to change the y position of the duck.

We also need to change the start position of the ducks so that they don’t enter the screen at the same place. We can make game more interesting by having the ducks enter at random positions.

Shoot the Ducks

We need to add scripts to the cross hairs so that we can fire the gun. We will allow the gun to move freely up and down and left and right. For this, we move the crosshairs using the mouse coordinates.

when we shoot the duck, it falls towards the ground until it hits the ground and disappears. We can do this when we receive the hit message.

We now need some method of keeping the score of the number of ducks shot. As we shoot a duck we must increase this score. We begin by setting the score to 0. We need to increase the score each time a duck is hit.

scrat

View Comments

  • Just desire to say your article is as amazing. The clearness to your publish is simply spectacular and i could suppose you're an expert on this subject. Fine with your permission allow me to grasp your feed to stay updated with impending post. Thank you a million and please continue the rewarding work.

  • It's rare to find a blog that consistently delivers high-quality content, but that's exactly what this blog does. The author's writing is not only informative and engaging, but also deeply thoughtful and insightful. I appreciate the level of research and attention to detail that goes into each post, and the author's commitment to providing balanced and unbiased perspectives. What sets this blog apart from others is its ability to cover a wide range of topics without sacrificing depth or quality. Whether I'm looking to learn more about a specific subject or just looking for an interesting read, I always turn to this blog.

Recent Posts

Create Your Own Super Mario Game in Scratch (Easy Step-by-Step)

Here's a step-by-step tutorial to create a platformer game similar to Super Mario in Scratch:…

1 month ago

Create a Fun Whack-a-Mole Game in Scratch: Step-by-Step Tutorial

Here's a step-by-step tutorial to create a Whack-a-Mole game in Scratch with code snippets: 1.…

1 month ago

Spot The Difference Game in Scratch

About Game: In Spot The Difference Game, the player has to spot the difference between…

3 years ago

Memory game using Scratch| Step by step Scratch Tutorial

In this scratch tutorial, you will create a memory game in which you have to…

3 years ago

How to make Flappy Bird on Scratch | Coding For Kids

In this article, we are going to teach you how to program your owncustomized version…

3 years ago

How to make a Snake Game on Scratch (step by step SCRATCH Tutorial 2021)

In this Tutorial, we attempt to make the popular snake game on Scratch About Snake…

3 years ago

This website uses cookies.