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 / Pong Completed...

Author
Message
Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 21st Jan 2007 10:55 Edited at: 21st Jan 2007 23:37


This is my 2nd program so far...I really need help finding bugs like 2 bugs:

-When the ball hits the top of the screen often times the ball goes to like 200 speed for no reason(FIXED)

-Whenever the ball hits the paddles, well sometimes theres a bit of glitchy movement, im sure its b/c of the rotation

Other than that, have fun with it


thx
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 21st Jan 2007 20:42
you need to include the media for us to use the code.


forum.thegamecreators.com/?m=forum_view&t=78971&b=8&p=0
forum.thegamecreators.com/?m=forum_view&t=91115&b=32
Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 21st Jan 2007 21:24
dang i forgot, i was going to but it was so late i just forgot

hope this did the trick

Attachments

Login to view attachments
Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 21st Jan 2007 21:25
heres the ball too

Attachments

Login to view attachments
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 21st Jan 2007 21:37 Edited at: 21st Jan 2007 21:40
I've said it to people before and I'll say it again...

Please indent your code!

I was going to try and help out, but looked at your program with no indentation and my brain just went 'click'...

These days it just doesn't seems to want to decypher untidy code and just switches off.

Sorry - it must be my age!

TDK_Man

Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 21st Jan 2007 21:50
ummm what do you mean though?

last time, on my calc program i indented because there were ifs inside of other ifs

but now theres not...what should I indent?
jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 21st Jan 2007 22:03
ya, u didnt indent that much... for example you have:



which would read MUCH better as:



this is only an example, but all of your code should be like this, if you expect help. people hate sorting through ugly code.


forum.thegamecreators.com/?m=forum_view&t=78971&b=8&p=0
forum.thegamecreators.com/?m=forum_view&t=91115&b=32
Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 21st Jan 2007 22:45
INDENTED!

thx guys

still the only two things id like to change:
-"Whenever the ball hits the paddles, well sometimes theres a bit of glitchy movement, im sure its b/c of the rotation"
-also i wanna get rid of the scare gotos i have
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 22nd Jan 2007 01:10
I'm taking a look, but it won't run. I'm getting an unrecognised parameter error with the first call to the Highlight function in the Main Menu loop.

Is this DBC or DBPro?

If it's Pro and it runs OK I'd be quite surprised because it shouldn't.

Your function header says it should receive two integers and a string. As they are screen positions, this is correct - they should be integers.

However in the calling lines you use floats - Eg: screen height()*0.4 which is wrong - and should be in Pro too!

Ah... OK, it is Pro - just ran it after fixing the function problems and have come to a grinding halt at the Set Image Colorkey command. [Switches to DBPro]...

Just looking at re-organising it a little now.

TDK_Man

Dexter_
17
Years of Service
User Offline
Joined: 13th Jan 2007
Location:
Posted: 22nd Jan 2007 02:59
sorry, its pro, i shouldve mentioned that in this top like i did in the last one

thanks so much for looking it over........ i dont know how to make the position of the text relative to the screen size without using floats

my collision codes really suck, well ive never done anything with collision before, and i really dont know how to get rid of those gotos lol :p

thx so much!

Login to post a reply

Server time is: 2024-11-26 23:27:34
Your offset time is: 2024-11-26 23:27:34