- Home /
Question by
GodOfMagic · Jun 17, 2015 at 07:08 PM ·
timerdeltatime
Timer limits
Hi,
I made a fully working timer, counting down, in js but I noticed that if timers time is more than 524288 it can't count down.
var time1 : int; //for showing OnGUI() and stuff
var time1f : float; //timer time
var time1set : boolean;
function Update()
{
if(time1set)
{
time1f-=Time.deltaTime;//if time1f>524288 timer don't work
time1=time1f;
if(time1<=0) EndTimer1();
}
}
any ideas?
Comment
Your answer
Follow this Question
Related Questions
C# Digital Timer 2 Answers
countdown timer acivation 1 Answer
If "equals" doesnt work. 3 Answers
Unity hand-made timer doesnt work? 1 Answer
Use timer to remove text 2 Answers