by DilloDude » Tue Jun 05, 2007 10:59 pm
It really depends. If you want to actually know how long you've been playing, use a timer. If you want to have a record for the shortest time, a counter is better. Otherwise, someone with a faster computer can always beat your score if your computer keeps dropping in fps to like 15. The other scenario is a dorr and a switch. When the switch is switched, the door opens and stays open for a certain time. You have to get to the door before the time runs out. If using a timer, and the fps lags, this can maki it impossible. GE does have a motion compensation to help when you get low framerates, but I haven't tried it and I'm not sure how well it works (although it obviously does some god or it wouldn't be there).
The other reason I prefer variable counters is that they sit nicely in a draw-actor script, and you can see easily where they go.=, and what they do, rather than having it hidden in a separate event. You can also vary the flow of time easily, or the speed at which you go. And then you have a variable that you can use in other cases, so although the time keeps counting, you can have if its less than a certain amount, do one thing, but otherwise, do another. But using actual timers is good when you want actual time.