Ok yeah, I get it.
I will try to do it and let you know.
EDIT:
It works!! Thanks alot!!!
Thanks for your help,
Ara
Type: Posts; User: AraHabs
Ok yeah, I get it.
I will try to do it and let you know.
EDIT:
It works!! Thanks alot!!!
Thanks for your help,
Ara
Ok,
So when I have the get in my class Ball, the get returns 0.
So to try it out, I took out the get in the class Ball and put a get right after the set.
And it returns the right number.
A...
I added a println in teh constructors like you said.
So it gives this:
public void setY(int a){
this.y = a;
System.out.println("SET"+this.y);
}
I placed a println Right after the setY() in the class Raquette and it showed the right value.
I placed a println Before using the getY() in the class Ball and it shows 0.
Hi guys,
Ok so I have to do a Pong type game for school.
So far, I am doing it with a mousemotion listener. But the thing is, I have 2 classes, Raquette and Ball.
the Raquette class contains...
Well what should I do then?
I am kind of lost to what to do... I've been trying to make this work for the last week or so...
Well, it doesnt paint. I mean the println give me the right infos ( "IS HIT" ), changes the x coordinates but it doesnt repaint...
As for drawing in JPanel, it would mean that I would have to...
Hey guys,
Ok so basically what I want to do is that when the user clicks on one of the squares, the cercle with in it changes places.
So far, I have the hit detection ( I know which square, so...