Hi everyone,Im trying to figure out how to combine a simple loading bar to a timer.I ask this because i want the player to wait a specific time before he or she can farm food.I understand how to create the actual timer and combine that alone to the action i need,but i want to be alot more visual.
I want to have some sort of bar that fills up simultaneously with my timer.
Could someone show me how this is done?
All you'd have to do is transfer the time to the width of the bar.
If your timer is 5 seconds and a full bar is 100 width
every 0.1 seconds set bar.width to bar.width+2
Develop games in your browser. Powerful, performant & highly capable.
LittleStain Awesome! i didnt think it was that easy,I swear Scirra always amazes me! thank you littlestain
You'll probably have to tweak it a bit to get the exact effect you want, but basically that's about it.