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.

Code Snippets / [DBP] Advanced Timer (Free Functions)

Author
Message
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 8th Jul 2006 02:51
Hello everyone.

I created this little DBP-Function-Collection for advanced timers. It’s quite simple: You create new timers and you are able to control if they or automatically restart them.

Example:
You are programming an RTS, where the player should wait 20 seconds after creating a unit. You just start a timer and control if it expires, after expiring you create the unit and delete the timer.

Commands:




Code (with example):
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 8th Jul 2006 11:46
wow this looks neat Mind if i add it to the pack? (Ultimate dbp pack)

Good work

Platformer Compo!
WHITEKNUCKLE IS BACK! Check the wip boards for more info
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 8th Jul 2006 14:52
I've just seen that there might be a bug in the percentage-function... I think I'm going to improve it and write a better example.
Then you can also add it to the pack.
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 14th Jul 2006 14:59
I've updated it, the percentage-function works correctly for restarting timers now.

Login to post a reply

Server time is: 2024-11-23 03:58:23
Your offset time is: 2024-11-23 03:58:23