Game Development Community

Progress Bar

by MrSpaceGame · in Torque Game Builder · 07/01/2012 (2:49 pm) · 1 replies

How do you grow it or change the color of the grow?
The documentation ain't telling anything about that...

#1
07/01/2012 (3:26 pm)
Do you want one end to be a different color than the other end or all one color?
To have it all one color what you could do is have a white bar with color blending to (what ever colors I'm just using green and red) a high green value and as you stretch the bar you change the blending or increase the red value. Have the green value directly inverse the red.

If you want it the other way that'll take some thought on my part...

EDIT:
Here are some sprite changing functions.
setSizeX(float width)
setSizeY(float height)