| 10-25-2002, 07:40 AM | #1 |
Guest | I made this because of this thread Help Creating An Elapsed Game Time Timer in Map Development. I cleaned up my original a bit, added comments, and made it shorter. It might of been cleaner to do it with arrays, but unless anyone wants me to, this seems good. The bulk of the actions are taken up by making a new title for the leaderboard (I used the title to be able to use strings to display the elapsed time correctly). If you are not going to use the leaderboard to count kills or what have you, just get rid of the section marked by comments. Here is a list of the variables if you want them: Seconds - Integer (keeps count of current second) Minutes - Integer (keeps count of current minute) Hours - Integer (keeps count of current hour) SecondsString - String (formats Seconds in :SS to be printed) MinutesString - String (formats Minutes in :MM to be printed) HoursString - String (formats Hours in HH to be printed) Leaderboard - Leaderboard (not really needed, but just in case you create a new leaderboard and don't want to use "Last Created Leaderboard") TimeString - String (Adds Elapsed Time: HH:MM:SS) |
| 10-25-2002, 07:48 AM | #2 |
Guest | Here is a photo of what it looks like, and some more information. If you want, you can slow down/speed up how fast the timer goes by changing the "Every 1.00 seconds of the game" to a larger or smaller number. I wanted to make this a variable, so it could be changed on the fly in the game, but I couldn't figure out what kind of variable it took, it doesn't seem to want to take a real. |
