Hi, kindly put the code within code boxes, not screenshots. It's a real pain if I have to type out your code to test.
That aside, the symptoms of the bug seem familiar. After the ball hits the boundary, you should move it such that it no longer hits the boundary. Otherwise, the hspeed or vspee
Hi, kindly put the code within code boxes, not screenshots. It's a real pain if I have to type out your code to test.
That aside, the symptoms of the bug seem familiar. After the ball hits the boundary, you should move it such that it no longer hits the boundary. Otherwise, the hspeed or vspeed will negate again, moving the ball further out, then on the next step negate again, going further in, and over time making no net progress.
First of all, sorry, I'm new in the forum and I don't know how to put the code in any other way yet, sorry for that
Yes i think is what you said about that vspeed and hspeed is going from 1 to -1 al the time when the bug occours, how can I make the ball no longer hit the boundary?