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 / help with a timer

Author
Message
bobbyd
16
Years of Service
User Offline
Joined: 17th Jan 2009
Location:
Posted: 28th Feb 2009 19:10
im using dbc and want to put a timer in my game so the enamy will attack after a few seconds i would just like a code please
thanks
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 28th Feb 2009 19:58
Check out TDK's excellent tutorial: it has everything you need to know about timers.

~QJ
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 2nd Mar 2009 01:16
btw

this forum is so people can give you an idea to a problem that you can't solve ussually people won't just giveyou the code you want/put it into your program

but yes tdks tutorials are always great
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 2nd Mar 2009 22:46 Edited at: 2nd Mar 2009 22:48
...but here's an idea of what you want to do (some pseudo-code)



or...integrated into a main loop:



~QJ
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 2nd Mar 2009 22:49
Whooops! Forgot a link:

http://forum.thegamecreators.com/?m=forum_view&t=59347&b=7

That's TDK's tutorial on the Timer() command

~QJ

Login to post a reply

Server time is: 2025-05-18 15:13:30
Your offset time is: 2025-05-18 15:13:30