I'm looking to create a 60 second countdown timer bar. I've already got a text timer that counts back from 60, but I'd also like to have a visual green bar that reduces as time ticks down. I'm including two graphics to show what I'm trying to create.
Can anyone point me in the right direction? Whether it's some raw code to work with or an online tutorial, it would be tremendously helpful, as I'm a bit stuck on this part of my project.
Thank you kindly!
Since this is related to a previous question, I'm using the code from that answer as a starting point:
Please note: there are many better ways of doing this. For example, I would probably draw the rectangle at full width, and then tween the
scaleX
property for a smoother look. This is just the a bare bones example to get you started.