majestik__12
01-15-2008, 09:14 PM
I am trying to animate a clock counting up
I want to have each digit on a seperate layer, so the single digit counter is one layer the 10 minute digit is another layer. so the minute would be counting to 9 and just keep looping, each time it reaches 9 the second layer would move from 1 to 2 the seconf layer(ten digits) would be counting to 5(6) and then looping back to 0.
Its a little difficult to explain but this is what i have for the single digits
x = Math.round(time);
if (x > 10){
x = Math.Round(time) - 10;
}
I have tried many different if then staments, but it only loops once, it reaches 10 once, goes back to 0, and then it just keeps counting back up past 10, know why it is doing that but i dont know how to fix it.
How would i make this keep looping? I want it to reset x back to zero and keep counting back up to 9 ad then rest back to zero. any ideas?
I would rather not hand animate this, because it has to all work at a certain speed in a certain time frame, and already have the time speed figured out(ot included in this post)
But that may be the best option at this point.
I want to have each digit on a seperate layer, so the single digit counter is one layer the 10 minute digit is another layer. so the minute would be counting to 9 and just keep looping, each time it reaches 9 the second layer would move from 1 to 2 the seconf layer(ten digits) would be counting to 5(6) and then looping back to 0.
Its a little difficult to explain but this is what i have for the single digits
x = Math.round(time);
if (x > 10){
x = Math.Round(time) - 10;
}
I have tried many different if then staments, but it only loops once, it reaches 10 once, goes back to 0, and then it just keeps counting back up past 10, know why it is doing that but i dont know how to fix it.
How would i make this keep looping? I want it to reset x back to zero and keep counting back up to 9 ad then rest back to zero. any ideas?
I would rather not hand animate this, because it has to all work at a certain speed in a certain time frame, and already have the time speed figured out(ot included in this post)
But that may be the best option at this point.
