Discuss Scratch

Becon_best
Scratcher
5 posts

need help making a pong game

I have been working on the issue for 10 minutes and can't find a solution. I am new to scratch please help.
DragonPlusMaster
Scratcher
100+ posts

need help making a pong game

Can you share the project? Are you just looking for collision code?
DidntMeanToDoThat
Scratcher
500+ posts

need help making a pong game

As DragonPlusMaster said, could we please have a project link, or could you specify a bit more what you need? You could also if you like take a look at this pong game I made quite a while ago, it could help you understand what you can do to make your project.

Last edited by DidntMeanToDoThat (Jan. 17, 2025 01:31:48)

Becon_best
Scratcher
5 posts

need help making a pong game

Hey thanks for reaching out the game is called basically pong
DragonPlusMaster
Scratcher
100+ posts

need help making a pong game

Do you need the code for it to bounce off the things?
Becon_best
Scratcher
5 posts

need help making a pong game

Yes, I do need the code for it to bounce.
DragonPlusMaster
Scratcher
100+ posts

need help making a pong game

Okay, here's the problem.
Your edge sprites will stop all the scripts in the project if the ball touches it, but everytime the ball is touching a paddle or saddle, it ends up touching the edge sprite, because they are the same width. My suggestion would be to make the paddle and saddle sprites a bit wider.

Here's some simple bouncing code:

whenclickedforeveriftouchingsaddle?ortouchingpaddle?thenturnpickrandom130to200degreesmove20stepsifonedge,bouncemove15steps

Last edited by DragonPlusMaster (Jan. 17, 2025 02:07:19)

Becon_best
Scratcher
5 posts

need help making a pong game

Well it kinda worked. But now the paddle and saddle don't work as you said.

Last edited by Becon_best (Jan. 17, 2025 02:20:31)

DragonPlusMaster
Scratcher
100+ posts

need help making a pong game

Becon_best wrote:

Well it kinda worked. But now the paddle and saddle don't work as you said.
Did you make them wider?

Edit: Okay, I tested it, and it seems to work alright if you move them further away from the edge.

Last edited by DragonPlusMaster (Jan. 17, 2025 02:28:27)

Becon_best
Scratcher
5 posts

need help making a pong game

Can you help me with one of my games where the shop doesn't work.
DidntMeanToDoThat
Scratcher
500+ posts

need help making a pong game

You should make your own topic if you need help, and also include a project link.
phxpw3118
Scratcher
11 posts

need help making a pong game

Becon_best wrote:

Can you help me with one of my games where the shop doesn't work.
Is it a clicker? What type of game?

Powered by DjangoBB