Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: R4L on Wed 05/11/2003 12:21:24

Title: How do I make a timer for my game?
Post by: R4L on Wed 05/11/2003 12:21:24
???How do I make a timer for my game????
Title: Re:How do I make a timer for my game?
Post by: SSH on Wed 05/11/2003 12:38:54
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.
Title: Re:How do I make a timer for my game?
Post by: R4L on Wed 05/11/2003 12:41:23
Could you write the script for the second one? ???
Title: Re:How do I make a timer for my game?
Post by: SSH on Wed 05/11/2003 13:02:47
Yes, I could.
;D

Title: Re:How do I make a timer for my game?
Post by: R4L on Wed 05/11/2003 20:09:14
Well than can you type it up on this forum?
Title: Re:How do I make a timer for my game?
Post by: SSH on Wed 05/11/2003 20:37:55
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.
Title: Re:How do I make a timer for my game?
Post by: R4L on Wed 05/11/2003 20:39:50
Nevermind, my friend Jacob did it. Sorry for wasting your time. ;D