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.

Author
Message
Zero_Cool
21
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 17th Feb 2003 07:06
I have been working for about the past hour on making code for the vertical bounce of the ball in 3d pong. Some help would be nice.

Jadelion
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location:
Posted: 17th Feb 2003 07:41
ok, for some reason it wasn't detection the object collision on your top wall and the ball was just going through it (I'm using DBC so mabey you wheren't even having this problem) all I did was change it to

if object hit(4,6) then updown=1

and suddenly it worked, except now all the ball does is bounce back and forth. You might consider pointing the object in a certain angel and then using the move object command and reversing the angel (with a wraparound()) for the collision instead so that the ball will actually move across the screen.
Zero_Cool
21
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 17th Feb 2003 20:54
me 2 and it was the same prob but thanks for the help

xmen
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location:
Posted: 18th Feb 2003 01:26
try this hope it helps



have fun

xmen

Login to post a reply

Server time is: 2024-09-19 17:58:49
Your offset time is: 2024-09-19 17:58:49