Quote Originally Posted by cmeifucan View Post
hi did you sort out the ball moving to hit the wall?
Yes thank you so much to everybody

but now i have another problem well i dont know how to move or animate the ball

void keyPressed (unsigned char key, int x, int y) {

if (key == 'z') {

Ballz = Ballz - Speed;
Bally = Bally + 2.8;

}

the above happens when i press the z key and it increments it once but it stops, how do I keep on animating the ball so it continues until it hits the target