How do I make a timer for my game?

Started by R4L, Wed 05/11/2003 12:21:24

Previous topic - Next topic

R4L

???How do I make a timer for my game????

SSH

Do you mean one of these?

1. You simply want a amount of time between some action and another? Use SetTimer(ID, COUNT) and IsTimerExpired functions (COUNT is typically seconds*40)
2. You want to have a countdown on screen: You counld either use a timer, or use the GetTime fucntion to update a GUI or overlay every second
3. You want to note how long someone plays a game for... store the GetRawTime value when they start to play and subtract it from the current Rawtime when they stop. You will have to work around save-games, paueses, etc. manually, though.
12

R4L

Could you write the script for the second one? ???

SSH

12

R4L

Well than can you type it up on this forum?

SSH

Maybe you could:

a) Say please
b) Give a little more detail on it: e.g. GUI, overlay, have you got a GUI already created? If so, what name, etc. etc. count down in seconds, starting from what number, what do you want to happen if the game is saved, etc.
12

R4L

Nevermind, my friend Jacob did it. Sorry for wasting your time. ;D

SMF spam blocked by CleanTalk