Here it goes. The paddle movement worked just fine until i put in the buttons. What about text size, bold or italics?
solved the paddle moving problem by adding this.setFocusable(true); and...
Type: Posts; User: Campos
Here it goes. The paddle movement worked just fine until i put in the buttons. What about text size, bold or italics?
solved the paddle moving problem by adding this.setFocusable(true); and...
Hello,
I've looked around and can't find answers i understand. Is it possible to have an applet that doesn't start until the user has clicked on the applet to give it focus? Maybe even have an...
Can't believe i missed the capital, thats like the first thing they tell you in big bold letters
To HelloWorld922
I added the rest of the code you posted in what i feel is the correct spot. To call lpmove() from the run method i used the following:
if (lpmovedown = true || lpmoveup ==...
Figured out the Top/Bottom collision problem. The ball and the paddle were moving vertically at the same speed, so once they met, the ball would reverse direction, but since the speed was the same...
Thanks for the reply.
See all those If statements? Thats where I did the collision detection.
if (posx == lpredge)
{
if (posy >= lpuedge)
{
if (posy...
Hey,
I'm trying to learn java. I've made a simple applet, kind of pongish. I have two problems with it. One is manual control of the paddles. Trying to do keylisteners makes my brain hurt. ...