Computer Science Canada Timer |
Author: | Smarteez [ Thu Nov 30, 2006 10:13 am ] |
Post subject: | Timer |
How do I enter a timer into my game so there is a limited time to get to the end of the level? |
Author: | Tony [ Thu Nov 30, 2006 10:19 am ] |
Post subject: | |
You need a way to measure the current time - as in time passed since some set point. I think Time.Elapsed will tell the time since your program began running. Record the time at the beginning of the level, and once again when you want to check for time-out. The difference is your time passed. |