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.

Newcomers DBPro Corner / collision detection broken

Author
Message
badrock
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: Missouri, USA
Posted: 30th Dec 2007 06:49
Hi, I am just beginning to learn DBPro and have been making this simple paddle game tonight. I had things working well but now the collision detection with the paddle is not working -- the ball just goes right through it. Can anyone notice what is wrong?



It is my first project so I am sure it is a little backwards! Any help would be appreciated.

badrock
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Dec 2007 14:10
Your paddle collision checking is checking for a exact number. Get it to check for paddle collision for a y coordinate of 430 to 459, and the bottom-of-screen collision to check for greater than 459.

That's good work for your first project. Keep it up

badrock
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: Missouri, USA
Posted: 30th Dec 2007 18:32
Thanks a lot for tip Ian, that did the trick.

Login to post a reply

Server time is: 2024-09-27 08:30:42
Your offset time is: 2024-09-27 08:30:42