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 Discussion / DBPro - Can someone give a little advice

Author
Message
Rizzle
18
Years of Service
User Offline
Joined: 1st Aug 2006
Location:
Posted: 2nd Aug 2006 02:54
I need a Sleep Command that wont actually pause the program...

as in...

Wait 30 seconds (But keep program running) Than switch variable back

My current Code....
Crazy Ninja
19
Years of Service
User Offline
Joined: 27th Aug 2005
Location: Awesometon
Posted: 2nd Aug 2006 04:52
wrong forum
try using timers. then you can time when you want the playerstate() and playerfroze() to equal 0.

if you don't know how to use timers this is tutorial on how to use one
http://forum.thegamecreators.com/?m=forum_view&t=59347&b=7
although i'm not sure if it was written with dBpro or dbc. good luck with programing
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Aug 2006 10:01
also, if u don't want to use timers, u can just use a counting variable and then an if-then command to check if it is the number it should be.

For instance:
Profit
19
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 2nd Aug 2006 18:11
BN2, the problem with that is what if the program is running very slow? What about if it's running very fast? You will get different times.

common people are walking in line.
BN2 Productions
21
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 2nd Aug 2006 20:53
yeah, i know, it is more of a guess and check thing and as far as it going slow/fast on other computers, the time would go fast along with everything else or just as slow as everything else.
Profit
19
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 3rd Aug 2006 04:35 Edited at: 3rd Aug 2006 04:40
Quote: "yeah, i know, it is more of a guess and check thing and as far as it going slow/fast on other computers, the time would go fast along with everything else or just as slow as everything else."


Not necessarily.

common people are walking in line.
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 3rd Aug 2006 06:36 Edited at: 3rd Aug 2006 06:37
Or,



Note: Untested. But It Should give you the idea.

Login to post a reply

Server time is: 2025-05-25 05:57:06
Your offset time is: 2025-05-25 05:57:06