Question[Help]Ball Bounce

Posts 1–3 of 3 · Page 1 of 1
[Help]Ball Bounce
Hey guys,

I have a problem in my VB Pong application. On the player's side, if the ball goes below the paddle, it just bounces off and doesn't count the computer scoring. Right now I have:
Code:
        If Ball.Left <= 0 Then 'Ball hits player side
            tmrBall.Enabled = False 'Disable timer for ball
            computerScore += 1 'Increment computer score
            Ball.Top = 158 'Reset ball to center screen
            Ball.Left = 305 'Reset ball to center screen
            btnStart.Enabled = True 'Enable start button
            btnStart.Visible = True 'Make start button visible
            lblInstructions.Visible = True 'Make instructions visible
        End If
Quote Originally Posted by Shark23 View Post
Hey guys,

I have a problem in my VB Pong application. On the player's side, if the ball goes below the paddle, it just bounces off and doesn't count the computer scoring. Right now I have:
Code:
        If Ball.Left <= 0 Then 'Ball hits player side
            tmrBall.Enabled = False 'Disable timer for ball
            computerScore += 1 'Increment computer score
            Ball.Top = 158 'Reset ball to center screen
            Ball.Left = 305 'Reset ball to center screen
            btnStart.Enabled = True 'Enable start button
            btnStart.Visible = True 'Make start button visible
            lblInstructions.Visible = True 'Make instructions visible
        End If
ok this is a pretty dumb idea but it has worked for me b4(with a link visitor) put the score above the tmrball.enabled (just a thought if it doesn't work w/e u wasted like 2 seconds checking)
No, that doesn't work. What happens is above the paddle, it works fine. Below the paddle, the ball just bounces off, acting as if it has hit the paddle.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us