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 / Problem with a simple bit of 2D code

Author
Message
JackBorthwick
15
Years of Service
User Offline
Joined: 13th Jul 2009
Location: Cyberspace
Posted: 14th Jul 2009 02:32
Hey, I'm having a bit of trouble with some code that I'm writing, basically I'm trying to create a pong style 2D game. Anyway I'm trying to get the "ball" to move around on the screen... the code compiles but it doesn't make any difference to the balls position.


Thank You,
Jack
JackBorthwick
15
Years of Service
User Offline
Joined: 13th Jul 2009
Location: Cyberspace
Posted: 14th Jul 2009 03:48
i've fixed the problem, but i've got another one, I'm trying to make the ball bounce off the pannel when it touches it, i've almost done it, (i've tested to see if the collision was recognised with a string) I just can't seem to manage to get the variable incrementy to change its sign, here's the code:
JackBorthwick
15
Years of Service
User Offline
Joined: 13th Jul 2009
Location: Cyberspace
Posted: 14th Jul 2009 03:53
Sorry for the triple post, I got it working, if this interests anyone here's the working code...

any comments that can be made would highly interest me, just need to add some "shine" now...

Thank you for your time.

Login to post a reply

Server time is: 2024-09-28 08:22:46
Your offset time is: 2024-09-28 08:22:46