How do I reset Timer.Elapsed?
Author |
Message |
Luffy123
|
Posted: Sat Jun 16, 2012 4:24 pm Post subject: How do I reset Timer.Elapsed? |
|
|
I'm making a game with a timer and when the user clicks restart game at the end of the game the timer.elapsed is still the current time elapsed.. hwo do i set it to restart? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Dreadnought
|
Posted: Sat Jun 16, 2012 4:45 pm Post subject: Re: How do I reset Timer.Elapsed? |
|
|
You can't reset it to zero. But you can get the same effect. Suppose 27 seconds have passed and you want to "reset" the clock, but you can't. Later in the program your clock reads 35 seconds, how many seconds have passed since the moment you wanted to "reset" the clock? 8 seconds!
How did we get 8 seconds?
What did we have to remember?
How do we remember things in a program? |
|
|
|
|
 |
|
|