View Single Post
tiran tiran is offline 2009-07-01 #2 Old  
Just get the percentage of time gone by and apply that percentage to the total width of your bar.

Calculate how much time has passed. Say 1 minute has gone by. Then you would find out the percentage that 1 minute is of 3 minutes (1 divided by 3). That would give you 0.33. Then all you need to do is times 300 by .33 and your load bar would need to be 99px. Might have to do some rounding in there when you actually tell your load bar how wide to be (so its not a decimal).
Reply With Quote