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 / Timer Function Help! (DBC)

Author
Message
ManiacBR
17
Years of Service
User Offline
Joined: 26th Oct 2006
Location:
Posted: 7th Nov 2006 15:04
I'm trying to use a timer function so that part of my code will excecute 10 seconds after the program has been run.

so this is basically what I have,





At the moment the timer makes no difference. It still performs the code the second the program is run.

Can someone help please?

Thanks
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 7th Nov 2006 15:16
The timer starts when your machine boots, not when the program starts. You need to grab a snapshot of the timer when you startand then wait until the timer less that snapshot exceeds 10000:



Tom J
19
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Essex, England
Posted: 7th Nov 2006 21:39
Try TDK's timer tutorial, that should be pretty useful if you're confused with timer functions

http://forum.thegamecreators.com/?m=forum_view&t=59347&b=7
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 8th Nov 2006 01:55 Edited at: 8th Nov 2006 02:02
This is another method a member showed me that works great:


Login to post a reply

Server time is: 2024-09-25 11:31:13
Your offset time is: 2024-09-25 11:31:13