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 Discussion / Bounce off the Bottom? -physics question-

Author
Message
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 19th Jul 2008 18:43 Edited at: 19th Jul 2008 18:44
If a mod would change the 'of' to 'off' which is in the title, that'd be appreciated. Thanks.


In this program, Pong, I want to know what I am doing wrong, that causes it not to be able to bounce off the bottom. Or the top.




After I dozen tries, I've removed the code that makes it bounce. If someone could make it possible for it to bounce of the top and the bottom, using anything, It'd be much appreciated. Thanks, Irojo

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?
Ed222
17
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 19th Jul 2008 21:30
I'll give you a hint. Get the boundary of the top and bottom of where you want the ball to bounce then if the ball passes or is on the boundary make the ball come back.

Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th Jul 2008 21:36
yeah. but set a switch.
like...



or somthing like it....

AM I UGLY OR WHAT??!!
What? It's My Sig!!...
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 19th Jul 2008 22:29
I tried both of those. It doesn't seem to work.. try it and you'll see.

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?
Irojo
17
Years of Service
User Offline
Joined: 21st May 2008
Location: Eating toast.
Posted: 20th Jul 2008 18:09
Though it was difficult... problem solved.

I urge you to watch the film "Who killed the electric car". Support electric cars! Did you know their used to be more electric cars then gassoline cars?

Login to post a reply

Server time is: 2025-06-07 06:46:05
Your offset time is: 2025-06-07 06:46:05