How To Create A Pong Game In Scratch

This is a step to step guide, explaining how to make a pong game in Scratch. In this post, in the end, we will achieve a pong game. Before we begin, you will need an account in Scratch to create a pong game in scratch.. If you don’t have one then, head to how to create an account in scratch otherwise you won’t be able to create a pong game in scratch.

Choose a backdrop for your pong game.

How To Create A Pong Game In Scratch 1

Click the  icon to open the Backdrop library:

How To Create A Pong Game In Scratch 2

Then choose the backdrop you want (such as neon tunnel or brick wall):

How To Create A Pong Game In Scratch 3
How To Create A Pong Game In Scratch 4
How To Create A Pong Game In Scratch 5

Click the  icon to choose a new sprite:

How To Create A Pong Game In Scratch 6

Then select a ball for your game:

How To Create A Pong Game In Scratch 7

You can delete the cat with the scissors tool. Click on the scissors, then click on the cat:

How To Create A Pong Game In Scratch 8

Click the Motion category, and drag out a move block into the Scripts area.

drag move block to Scripts area

Then, click on that block to make the ball move.

drag move block to Scripts area

Want it to keep going? Snap-on the block if on edge, bounce.

Then, click the Control category. Wrap a forever block around the other blocks, like this:

How To Create A Pong Game In Scratch 9

Click anywhere on the stack of blocks to try it.

How To Create A Pong Game In Scratch 10

To stop, click the stop button: 

Want it to go at an angle? Snap a point in direction block on top, and type in an angle.

How To Create A Pong Game In Scratch 11

Next, click the Events category.

How To Create A Pong Game In Scratch 12

Drag out a when  clicked block and snap it on top:

How To Create A Pong Game In Scratch 13

Your script will start whenever you click the green flag:

How To Create A Pong Game In Scratch 14

Tip: Want to change the speed of the ball? Type in a different number of steps:

How To Create A Pong Game In Scratch 15

Add a paddle so you can start to play! Click to choose a new sprite:

How To Create A Pong Game In Scratch 16

Then, select a paddle from the Sprite library:

How To Create A Pong Game In Scratch 17

Tip: Adjust the size of the paddle by clicking with the grow or shrink tool:

How To Create A Pong Game In Scratch 18

Make it interactive! You can control the paddle with the mouse cursor.

Select the paddle.

How To Create A Pong Game In Scratch 19

Then build this script:

How To Create A Pong Game In Scratch 20
How To Create A Pong Game In Scratch 21

Click the green flag to start your scripts: 

Click to choose the ball:

How To Create A Pong Game In Scratch 22

Add this script to make it bounce whenever it hits the paddle:

How To Create A Pong Game In Scratch 23

Here’s how to build the script:

How To Create A Pong Game In Scratch 24
How To Create A Pong Game In Scratch 21

Click the green flag to try it out: 

Make a sound when the ball hits the paddle.

How To Create A Pong Game In Scratch 26

Click the Sounds tab, then click 

How To Create A Pong Game In Scratch 27

Choose the ‘water drop’ sound (in Effects):

How To Create A Pong Game In Scratch 28

Then, click the Scripts tab. Click the Sound category, and drag out a play sound block.

Snap that sound block into the script, like this:

How To Create A Pong Game In Scratch 29

Make the game stop if the ball hits the bottom.

Click to select the Stage:

How To Create A Pong Game In Scratch 30

Select the Backdrops tab.

Now you can edit your backdrop. Select the line tool. Draw a thick line at the bottom:

How To Create A Pong Game In Scratch 31

Tip: Hold down the Shift key while drawing the line to make it straight.

Tip: To undo, click the Undo arrow:

How To Create A Pong Game In Scratch 32

Click to select the Ball sprite:

How To Create A Pong Game In Scratch 22

Click the Scripts tab, then add this script to make the ball stop if it hits the line color:

How To Create A Pong Game In Scratch 34

Tip: Click inside the square box in the touching colour block. Then move your cursor to point and click on the bottom line colour.

ADD EFFECTS

Change the colour of the ball when it hits the paddle.

How To Create A Pong Game In Scratch 35

STARTING POSITION

You may want to set the ball’s starting position.

Move the ball to where you want it to start, then drag the go to x: y: block into the top of this script:

How To Create A Pong Game In Scratch 36

ADD POINTS

Create a variable for keeping score.

How To Create A Pong Game In Scratch 37

Then add the score blocks to your script:

How To Create A Pong Game In Scratch 38

You can also change what happens when the ball touches the bottom. For example:

How To Create A Pong Game In Scratch 39
Trushil Shah

Author: Trushil Shah

My name is Trushil Shah and I am 10 years old. I live in Australia, a multicultural country. I have a little sister. Here are many things I like to do, to see, and to experience. I like to play sports, study, do technology experiencing, go out into the world, read, write, see the lunar eclipses by a glimpse, share time with my family, code in scratch and most of all have fun. I like flowers in spring, rain in summer, leaves in autumn, and snow in winter. I want to be a doctor or engineer when I grow up. I like many different types of food. My favourite subject of all is Maths. I am always trying to do my best. Whatever I do I want to do best.

44 thoughts on “How To Create A Pong Game In Scratch

  1. Pingback: Immediate Edge
  2. Pingback: 918kiss
  3. Pingback: dash kokemuksia
  4. Pingback: bitcoin loophole
  5. Pingback: ریورپوکر
  6. Pingback: w88 lite
  7. Pingback: w88club
  8. Pingback: mơ thấy ba ba
  9. Pingback: 먹튀
  10. Pingback: theweedtube
  11. Pingback: 온라인홀덤
  12. Pingback: link
  13. Pingback: mo ran can

Leave a Reply

Your email address will not be published. Required fields are marked *