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 example....

Author
Message
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 23rd May 2004 10:19
Can anyone show me an example with the usage of timer() command? I want to make an enemy explode at a certain time.

eatfishy
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 23rd May 2004 10:51 Edited at: 23rd May 2004 10:53
Is something like this what you want?


Hope this helps.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 23rd May 2004 13:21
or something like this



all you need to do is add the delay to the current timer value (the delay is in 1000ths of a second) then check for when the timer is greater than that, then trigger the event, hope thats some help.

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
2D Analyst
AGK Developer
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 23rd May 2004 22:46
Thanks guy. Man, you guys response very quick to my question.lolz I love this forum.

eatfishy

Login to post a reply

Server time is: 2024-09-22 10:28:45
Your offset time is: 2024-09-22 10:28:45