In my pong game if you got a wrong angel and hit one of the boxes in the middle it bounce of wrong i'll try to drawe it:
.=nothing / and \=direction of ball [.]=box O = ball
O
..\
...\
..[.] <-- WRONG
../
./
........[.]
......../\
......./..\ <-- CORRECT
....../....\
...../.....O
This glitch dosent always happens but since I want a perfect game I need to fix it! Please help
Offline
Instead of usingdirection, use x and y values. When it's touching the box on the side, multply the x by -1, and when touxhing top or bottom, y times-1.
Offline
I made a project that does bouncing like that. But it uses a laser instead of a ball, but I'm sure that will some adaptation you may be able to use the bouncing script. http://scratch.mit.edu/projects/MoreGamesNow/755062
Offline