-
Text align script assistance
Iam making a 5:00 countdown.. Everytime I have to manually adjust the text to hold the colon “:” in a Fixed position so that the text doesn’t keep wobbling left and right for every next digit. Can someone help me with a script that can hold “:” in Fixed position while counting down as well.
I use this script for countdown that I found from creative cow
rate = -1;
clockStart = 300;
delay = 2;function padZero(n){
if (n < 10) return “0” + n else return “” + n
}
t = Math.max(time – delay,0);
clockTime = Math.max(clockStart + rate*(t – inPoint),0);t = Math.floor(clockTime);
min = Math.floor((t%3600)/60);
sec = Math.floor(t%60);
min + “:” + padZero(sec)Thanks