Timer Bar... I am stumped.

I need some help fellow GS members. I have looked at tshirtbooths tutorials on health bars, but can't seem to figure this out.
I am building 1 scene for many different levels. Each level has a Timer, but they change depending on the difficulty. Each level has a timer between 25 and 15 seconds. Its a mix.

I have created a horizontal timer bar that shrinks to the left. I am adding a power up that will allow the player to add 5 seconds. Using interpolate will not work because once interpolate starts counting down to 0, there is no adding to it and the power up fails.

The only workaround I could find was using a timer
every .01 seconds -> change.attribute Level.timer to level.timer -.01.

This kind of works, but not sure how to get the timer bar to constrain to it.

Any help would be appreciated.

Thanks!
Crestwood

Comments

Sign In or Register to comment.