|06-16-2001, 12:20 PM||#1|
I want to build a item that will work for three minutes, and that the player's HUD will display the amount of time left till item done. I've finished with the item code, though I've no idea how to build a "clock" varaible for it.
How can I implement it in the game?
|06-16-2001, 01:38 PM||#2|
Seeing as it is player specific, you could implement a simple timer in ApplyAction() as it is called every tick (0.05 seconds) Just maintain a float to decrement the time left.
Or alternativily you could record when the bomb (or whatever) was planted, and whenever the hud is drawn work out how long it has been placed for.
Coder for the secret mod
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread Tools||Search this Thread|
|Display Modes||Rate This Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Events not Triggered||bobwalt||Serious Sam 2||2||11-26-2005 01:56 PM|
|temporary freezes on mouse events||inignoct||Technical Support (SSC)||4||02-28-2002 11:48 AM|
|Anyone still having trouble getting to Croteam.Com||xxzen||Serious Sam Classic||25||10-17-2001 04:31 PM|
|www.croteam.com||Kyo||Serious Sam Classic||37||10-14-2001 07:55 AM|