I have the perfect speed now I just need to keep it on the panel it goes right of the panel as soon as it makes it across the panel but the speed is perfect.
Type: Posts; User: aortell24
I have the perfect speed now I just need to keep it on the panel it goes right of the panel as soon as it makes it across the panel but the speed is perfect.
I got it I finally got it ! now I just need to keep it in the panel. Thanks so much!
XPoint and Ypoint keep printing out 0 I dont understand how they can be 0 and the ball is moving so fast I can bearly see it.
Oh got ya Thanks alot
So, I move that line to the construtor and just update the speed every timer tick?
I though that by giving it random number in between 0 and 800 it would position the ball at random postions inside the panel which is 800 x 800
I was trying to keep the ball inside the panel which is 800 by 800 but I though that it was moving to fast so I changed it to 80 but that did not help .
I wrote all this.Thanks for the help.
But yes I just need a bouncing ball fro every client connected .
My project is to create an instance of the ball for every client that is connected to a server and the client should have a way to display and change the color , speed and direction of the ball.
Thanks alot guys that is a old habit my teacher told me he puts '_' in front of private data fields.Thanks for the help.
Hello everyone I am having a hard time bouncing a ball I cant seem to get the collision correct and the ball is moving way to fast.Any help would be greatly appreciated.Here is my code.
import...