- Code: Select all
:startcounter=2000;framerate=30;minutes=floor((startcounter-time)/framerate/60)%60; seconds=floor((startcounter-time)/framerate)%60; return Text(string.format("%02.f",minutes)..":"..string.format("%02.f",seconds));
just substitute framerate = 30 with required framerate and adjust the startcounter (in seconds) as per appropriate.
I didn't fully check this, so it may require some tweaking.
cheers, Okke