Seriously!

Go Back   Seriously! Forums > Serious Sam Series > Serious Sam Classic > Serious Sam Classic Workshop > Serious Sam Classic SDK

Serious Sam Classic SDK Discuss coding ideas & problems or show tutorials and code snippets.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-16-2001, 12:20 PM   #1   Add To Ignore List  
Fluffy Teletubby
 
Iirion Claus's Avatar
 
Joined: Apr 2001
Location: Israel
 
Iirion Claus is offline
Post

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?
  Reply With Quote
Old 06-16-2001, 01:38 PM   #2   Add To Ignore List  
Werebull
 
Ashthos's Avatar
 
Joined: Apr 2001
 
Ashthos is offline Send a message via ICQ to Ashthos
Post

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.

HTHS

Ash
__________________
Ash Beeson
Coder for the secret mod
  Reply With Quote
Old 06-16-2001, 05:14 PM   #3   Add To Ignore List  
Fluffy Teletubby
 
Iirion Claus's Avatar
 
Joined: Apr 2001
Location: Israel
 
Iirion Claus is offline
Post

Good enough for me Thankies!
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Events not Triggered bobwalt Serious Sam 2 2 11-26-2005 01:56 PM
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


All times are GMT -4. The time now is 07:00 AM.