Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have an image that has just letters on it with a transparent background. I was thinking that as my game is loading that these letters could "fill up" with a certain color. So they would start out gray and then starting from the left each letter starts to get red. I was thinking about overlaying a transparent rectangle over it, and stretching the transparent rectangle based on the progress. But then the background also will turn red and I want just the letters to be red. Any ideas?

share|improve this question

1 Answer

up vote 4 down vote accepted

I don't know how this feature would be implemented in your specific development environment, but the solution to the problem you describe is masking.

Basically, apply a mask to the progress bar in the shape of your letters and then the stretched rectangle won't be rendered outside the mask.

share|improve this answer
I understand the idea behind this, thanks for the link. I should be able to get it going now. – Alex_Hyzer_Kenoyer Mar 15 '12 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.