Justin... maybe you can help me. I have it set so when the ball hits the borders the computer pad will follow it so that it won't lose and miss the ball, but when the ball hits the bottom border, my timerAI.stop is not working and it stops afterthe ball hits the ground. The pad width length is 80 and the balls is 26, so the pad will show to the point where only 26 of its length is showing then continue to follow the ball. How can I get it to stop at 500?
Well i don't really understand what u want but here is what i did. Now the computer stops when it hits the wall. I don't think it's a good idea to use timers for this. I think a game loop would be better. Also you should fix that flickering by drawing everything to an off screen image and then drawing that image to screen.