-
percent loader fake
i am making a loader to start my video (not a real loader, just animated) but i am really putting 100% in there. i have a script that does a timer from 20 minutes to 0…. i want modify it to go from 0% – 100% by the end of the composition. below is code i used for timer… ( i got this script from someone on here)
//countdown clock in miliseconds
ClockStart = 100; //Count to 100
//start = ClockStart*60; //start time in seconds
compTime = ClockStart – time;
eTime = Math.floor(compTime);
csec = Math.floor((compTime – eTime)*100);
ms1 = Math.floor(csec/10);
ms2 = csec%10;
hr = Math.floor(eTime/3600);
h1 = Math.floor(hr/10);
h2 = hr%10;
min = Math.floor((eTime – hr*3600)/60);
m1 = min;
m2 = min%10;
sec = eTime – hr*3600 – min*60;
s1 = Math.floor(sec/10);
s2 = sec%10;
m1 + ‘:’ + s1 + s2 + ‘.’ + ms1 + ms2Plans fail for lack of counsel, but with many advisers they succeed.