PDA

View Full Version : having a timer count when a string is active


Shadow101010
05-10-2013, 07:27 AM
Hello, I was wondering if I could ave a timer count down while a sting is active. If that doesn't work, is there a way to have the timer register with the comuter clock to tell the time of when the sting started and then ended, then you would subtract it?
Thank you!

To play my game you need to type the color of the word that pops up (ex.if the color purple appears and the color of the word itself is blue, you would type in blue)

x2495iiii
05-10-2013, 11:42 AM
What exactly do you mean? It looks like you have a working timer already. What would you like changed?

Shadow101010
05-10-2013, 12:04 PM
when you play the game, the string pauses the timer, so i was wondering if there was a way so that wouldn't happen

x2495iiii
05-10-2013, 12:09 PM
Ah.

Making the timer account for time used during the typing is possible, but it still won't count down while the dialogue box is visible.

Is that alright?

Shadow101010
05-10-2013, 12:13 PM
Ah.

Making the timer account for time used during the typing is possible, but it still won't count down while the dialogue box is visible.

Is that alright?

Yes, that would be perfectly fine!

x2495iiii
05-10-2013, 12:34 PM
This should work. Tested it a few times and it seems to be accurate.

You'll need to add something to stop the timer at the end of the game.