Hello, I want to flash some stuff in time with my music. It's complex enough I want to tweak it by hand. But my problem is that I can't seem to get an accurate time count.

I had this:

while(1)
{
if(index > 3.75){...}
index += 0.01;
wait(-0.01);
}

But the problem is, getting to 3.75 takes much longer then 3.7 seconds. I think wait is not accurate that small.

Timer() seems like it might be used, but I'm not sure how.

So, how can I measure tenths of a second?

Thanks,
Michael.


My games - www.spyeart.com