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 / making pong collision work (DBPro)

Author
Message
Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 31st Dec 2006 04:47
I'm trying to make a pong game. But I can't get the collision to work right. Here's the thing, i have the ball moving by typing in
move object left 3,0.07
and then to set the collision with the paddle i typed
if object collision (3,1) then move object right 3,0.14
That didn't work. It just bounced off a little and then went right back to going left.

By the way, how do i put source code on here?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 31st Dec 2006 05:27
at the bottom of this page type pong into the thread subject search box and choose the entire forum.
it will return many methods and many discussions regarding the subject.


to display your code wrap it into two tags [ c o d e ] your code [ / c o d e ]
remove the spaces between the characters to make it work.

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 31st Dec 2006 13:50
http://forum.thegamecreators.com/?m=forum_view&t=95110&b=7

I suggest you read it all, but your problem is covered specifically in the section entitled 'The Ball'.

TDK_Man

Allanon Shadeslayer
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location:
Posted: 31st Dec 2006 20:53
ty all!

Login to post a reply

Server time is: 2024-11-26 05:56:56
Your offset time is: 2024-11-26 05:56:56