Talk:Creating a visible timer

From Valve Developer Community
Revision as of 07:44, 24 November 2007 by Volt (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I'm thinking about doing this... but before I make the page, a few things:

1.) In testchamber 00, the clock above both portals is in the format minutes : seconds : centiseconds : milliseconds. But the centiseconds only counts down from 59 to 0, which makes no sense. There are 100 centiseconds in a second.

2.) The only way I can think of how to do this (without decompiling the first map of Portal itself) is to set a logic_timer to increase the value of a math_counter for each pair of numbers, which would be 1 time per second for the seconds space, 60 times (!) per second for the centiseconds space, and something like 10 times per second for the milliseconds space (this texture has 10 blurred frames). So this amounts to 71 times per second that a logic_timer will change the value of a math_counter, and then the math_counter changes the texture index of the clock number textures. Is there a more efficient way of doing this?