I recently Made a game called Pong Vs CPU. WHen i tested it i found it to work ok but it had a glitch that i need help fixing. Whenever the ball touches the paddle it supposed to bounce away. first of all whenevr the ball touches the paddle, it doesn't always go in the right directino and second of all sometimes the ball gets caught in the paddle when its supposed to bounce off!
Please Look at the script here:
http://scratch.mit.edu/projects/dazman/319781
Offline
Well, you've got a script set up in a loop to turn the ball when it touches red. But you have done nothing to guarantee that the loop will only run once, when red is touched. What might be happening is that the loop is running through several iterations, while it is touching red, so the ball direction is getting messed up.
The fix is to put a "Wait Until Not Touching red" right after each "Turn 20 Degrees " block. That will insure that you get only one turn each time the ball hits the paddle.
Offline