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 / Cant make the players stay on screen

Author
Message
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 15th Mar 2005 03:15
Ok i have a problem,i am making an pong game. But i cant make the players stay on screen. Becuse i am using self modeled players i have the game in an attachment. The code i tried to use is still there in there. Please help me

You never fail, only make mistakes.

Attachments

Login to view attachments
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 15th Mar 2005 03:24 Edited at: 15th Mar 2005 03:24
The new source code
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 15th Mar 2005 03:26
hello again baggers and tnx again, can you explain what you changed? and an other question do you have an msn? i think i am going to have help from you in the future tnx m8

You never fail, only make mistakes.
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 15th Mar 2005 03:28
oh baggers never mind the question about what you changed, i see it now, but can you explain what i did wrong?

You never fail, only make mistakes.
Baggers
20
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 15th Mar 2005 05:23 Edited at: 15th Mar 2005 05:24

It was that bit as it sets the values to zero each loop so the bit that checks to see if it should move in a given direction always is allowed to. You could store the variables in an array but i thinks my method was much easier in this case.
Slooper
21
Years of Service
User Offline
Joined: 13th Feb 2003
Location: Sweden
Posted: 15th Mar 2005 05:33
ok tnx again, but i still wonder if u use msn or something

You never fail, only make mistakes.

Login to post a reply

Server time is: 2024-11-13 20:13:41
Your offset time is: 2024-11-13 20:13:41