Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with bounding box/sprite collision!!

Author
Message
Brandon Spaulding
13
Years of Service
User Offline
Joined: 31st Aug 2012
Location:
Posted: 1st Sep 2012 05:33
So I just recently learned BASIC and figured I would try making a clone of pong on my own, and I made everything else work just fine except for the part that makes the ball bounce off the paddle. And yes I'm aware that the game is not yet finished. The error is on lines 39-51

Thank you in advance for the help.
Brandon Spaulding
13
Years of Service
User Offline
Joined: 31st Aug 2012
Location:
Posted: 1st Sep 2012 15:18
I forget to add the error... the error i am having with the code is that the ball will hit the paddle and bounce like 3 pixels away and then shoot back into the paddle, it will continue to do this until it
it gets to an edge of the paddle, or it will get sucked into the paddle and then shoot out the top/bottom really fast, or it will have the first problem only it will be on the back of the paddle.

Login to post a reply

Server time is: 2026-07-07 10:12:44
Your offset time is: 2026-07-07 10:12:44