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 / Count Down Timer

Author
Message
Alkaline
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Seattle, Washington
Posted: 22nd Mar 2004 20:07
I need a simple Count down timer to count down from 5 minutes for my game. I need it cause for one of my lvls you have 5 minutes to complete it.

Cheers,
Whatever

Intel Celeron Processor||224 mb RAM||AG 315P 64 SDRAM
http://www.zip.dbspot.com
hyrichter
20
Years of Service
User Offline
Joined: 15th Feb 2004
Location: Arizona
Posted: 22nd Mar 2004 20:20
Try something like this.

Right before your main loop, put this code:

TimeStart=timer()

Then in your loop:



Hope this helped.
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 22nd Mar 2004 21:17 Edited at: 22nd Mar 2004 23:55
To run with hyrichter's code...


--
TAZ

[edit: This runs fine on my machine in DBP.]

Tim Ballisto
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 22nd Mar 2004 23:23
try the code base for will's pong game, i added some to it and it included a timer. i think i named it ping pong enhanced.


Programs for programmers.

Login to post a reply

Server time is: 2024-09-22 02:50:00
Your offset time is: 2024-09-22 02:50:00