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 Professional Discussion / Darkbasic Professional Point System/Timer

Author
Message
Altrasurfer
15
Years of Service
User Offline
Joined: 23rd Mar 2011
Location:
Posted: 6th Apr 2011 01:04
Hello everyone,
I just recently got Darkbasic Professional and
have built a Reverse Pong program, you know, the game
where you bounce a ball back and fourth.

Well I want to add a point system,
for example, text in the top left corner
then increments by 1 each time the person
blocks the ball from going out.

How would I do that?

I would also like a timer that shows in the top right corner,
and whenever the ball goes out, the timer resets itself.

Basically, how do I reset the timer to start over?
Thanks for help,
I really need it.

New to game making
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 6th Apr 2011 06:45
To add points just check for collision between the padle and ball objects then use a variable like "score" and add one to it


To reset a timer just declare it as timer again



My software never has bugs, it just develops random features.
C4: silly putty for men.

Login to post a reply

Server time is: 2026-07-11 14:57:01
Your offset time is: 2026-07-11 14:57:01