How to make pong in Scratch – 2 Player Game

In this blog post I will be showing you how to make pong in Scratch (designed for beginners). This will not include score etc. There will be a post for more complicated features.

Check out full game here https://scratch.mit.edu/projects/315876708

To move the left paddle you will use ‘w’ to go up and ‘s’ to go down

To move the left paddle you will use ‘up arrow’ to go up and ‘down arrow’ to go down


Step 1

Write click on the cat sprite and press delete.

Step 2

Add 2 paddles and one ball.


Step 3

Press the i button
Then
Rotate the bar so is either 0 or 180 degrees

Do this to both


Step 4

Move the paddles so that they are at the edge centred like the diagram above.


Step 5

Each paddle should get 1 of these.

The paddle with x=200 will be Right

The paddle with x=-200 will be Left

This image has an empty alt attribute; its file name is image-7.png

Click on the i and rename the right paddle ‘Right’ and the left paddle ‘Left’


Step 6

Add this code to ‘Left’
Add this code to ‘Right’

Step 7

Add this code to ‘Ball’.


Step 8

Press green flag and play the game.

Check out full game here https://scratch.mit.edu/projects/315876708

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s