Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » need help making a pong game
- Becon_best
-
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
-
100+ posts
need help making a pong game
Can you share the project? Are you just looking for collision code?
- DidntMeanToDoThat
-
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
-
5 posts
need help making a pong game
Hey thanks for reaching out the game is called basically pong
- DragonPlusMaster
-
100+ posts
need help making a pong game
Do you need the code for it to bounce off the things?
- DragonPlusMaster
-
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:
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:
Last edited by DragonPlusMaster (Jan. 17, 2025 02:07:19)
- Becon_best
-
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
-
100+ posts
need help making a pong game
Did you make them wider? Well it kinda worked. But now the paddle and saddle don't work as you said.
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
-
5 posts
need help making a pong game
Can you help me with one of my games where the shop doesn't work.
- DidntMeanToDoThat
-
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
-
11 posts
need help making a pong game
Is it a clicker? What type of game? Can you help me with one of my games where the shop doesn't work.
- Discussion Forums
- » Help with Scripts
-
» need help making a pong game