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 / Breakout Coding Problems

Author
Message
One Common Ruin
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 19th Jan 2004 22:36
I'm having problems coding my brekout game. I have my outline but I can't seem to have the paddle to move, the ball to bounce (and start with the space button), and have the blocks disappear.
One Common Ruin
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 19th Jan 2004 23:23
If any one has suggestions that would great
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 19th Jan 2004 23:39
You don't seem to have attempted to get it to move.

All of the code you need is in a thread called "My First Pong Game"

One Common Ruin
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 19th Jan 2004 23:40
Thanks
One Common Ruin
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 19th Jan 2004 23:51 Edited at: 19th Jan 2004 23:52
I was looking at your tutorial and I couldn't find a way to have to the ball to move and have the paddle move, so I was looking for other breakout codes and I found a way to get the ball and paddle moving, but I can't get the other blocks to disappear when the ball hits them and after it bounces for a little bit it will disappear.
Here is the source code:
Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 20th Jan 2004 00:01
Just read through the whole tutorial. You need to understand what the code is doing.

One Common Ruin
20
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 20th Jan 2004 01:16
Ok I have the ball bouncing but what I don't have is the ball bouncing off the paddle. I may have put the code in the wrong place.
walaber
20
Years of Service
User Offline
Joined: 22nd Oct 2003
Location: Los Angeles, CA
Posted: 20th Jan 2004 07:36
i don't mean to be rude, but this sounds like a case of the "copy-and-paste" blues. even if you aren't literally copying the code, I get the feeling you don't fully understand the code you are using.

I know from my own experience, that you can't troubleshoot unless you understand the code.

my advice is to go through Chris' tutorial again, and make sure you have a clear understanding of EVERY concept, and the code used to implement that concept. then you should be able to write the game on your own!!

good luck!

Go Go Gadget DBPRO!

Login to post a reply

Server time is: 2024-09-21 18:24:22
Your offset time is: 2024-09-21 18:24:22