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 / timers in games

Author
Message
Winston
20
Years of Service
User Offline
Joined: 15th Nov 2004
Location:
Posted: 15th Nov 2004 18:48
Using DBPro I want to create a timer that starts randomly, displays on screen and counts up in seconds from 0 to 59, using the timer() command how do you synchronise the timer with the clock display on screen so when the timer 1000 then the clock display is 01.

Please help
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 15th Nov 2004 22:01
well maybe you can use this? :




hope it help


Waggames

wanna join Waggames?
then visit our site at : http://www.freewebs.com/waggames
my old forum name was: The Nerd
Damokles
21
Years of Service
User Offline
Joined: 28th May 2003
Location: Belgium
Posted: 15th Nov 2004 22:18
Sorry, Waggames (alias the nerd), but your code freezes the program and doesn't use Timer as requested.

Here is what I suggest :


If you want it to change every 2 seconds change
TIMER() > StartTimer + 1000
into
TIMER() > StartTimer + 2000
If you want it to be every half seconds, change it into
TIMER() > StartTimer + 500

- Mind the gap -
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 15th Nov 2004 23:51
Try this if you don't want to cls the whole screen
BadMonkey91
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 16th Nov 2004 00:15
I'm gonna throw some more code into the hat.


there would be your basic timing device. I'm rusty with darkbasic, so you'll have to translate it if it's bad.

if it times in millaseconds or what ever, just multiply time# by 1000
er somethin'

DO SOME TIHNKING

Go nuts!! whooopdeee doo!!

Badmonkey91@hotmail.com
wmf
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location:
Posted: 16th Nov 2004 03:13
That post didn't work. if this doesn't somebody tell me why.

BadMonkey91
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 18th Nov 2004 02:21
It worked, but it didnt tell me there was any new posts

Badmonkey91@hotmail.com

Login to post a reply

Server time is: 2024-11-27 14:28:08
Your offset time is: 2024-11-27 14:28:08