Search:

Type: Posts; User: JakkyD

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    1,435

    Re: Has the ball hit my paddle?

    I am using this listener



    class Transaction implements KeyListener // When character typed
    {
    public void keyPressed( KeyEvent e) // Obey this method
    {
    ...
  2. Replies
    6
    Views
    1,435

    Re: Has the ball hit my paddle?

    Ahh my first post on this forum and it's a shambolic one. I apologise. I didn't call the checkCollisions(); function while running the main program loop.
    I added this and now it's working fine.
    ...
  3. Replies
    6
    Views
    1,435

    Has the ball hit my paddle?

    Hi all, I'm creating a game of Pong and I'm having trouble seeing whether the ball has hit the paddle. My game so far has a ball that bounces around the screen, and a paddle on the left which can be...
Results 1 to 3 of 3