   Visual Basic 6.0- Breakout problem
  I am making breakout in Visual Basic 6.0 for my computer programming final. I have run into a problem. This problem is hard to describe. I can make the ball bounce off of the paddle, blocks, and walls but there is an issue. That issue is that the ball bounces off of the block.top and not just the block itself. Here is some of my code:' this code makes shpball (the ball) bounce off of shpblock (the block)If shpball.Top <= shpblock.Top Then counter2 = counter2 * -1If shpball.Left <= shpblock.Left Then counter1 = counter1 * -1The problem is that the ball bounces off the anything at the height of shpblock.top. Is there anyway that I can make shpball bounce off of just only shpblock? Please let me know If I did not describe the problem too well. Thanks in advance.[Edited by - fanman791 on May 14, 2006 6:31:54 PM]
  You're colliding X and Y independently! ... that will cause exactly the problem you describe, namely the ball will bounce at X=block_x or Y=block_y. You need to make one test which makes sure the ball is touching the block in both directions.I'm not going to spell out the answer since that's very close to 'homework help', and besides if you're a computer programmer by training you ought to be able to work it out!   