Maybe this one should go in the tile based forum
Maybe all my recent threads should. But anyway, I was wondering what the best way to colorize the different units in my RTS would be. You know, each team has a different color but the same general units? I was thinking of doing it real-time, but if I perform an if on every pixel of every image to change certain colors to the team color, it will probably have about 10fps... My next idea was to render (yes, I mean render as in 3D - Bryce 3D
) each image in all the possible colors... Thats a lot of images! Then I came up with bltting the image to a temporary surface, then doing a destination colorkey of the team color and bltting the whole surface with the actual team color (confused yet?). That is the best I have come up with yet, short of storing a copy of the images for each team. Which would use memory. I would like to hear some other ideas.
If you type something wrong, its a typo. If you say something wrong, why isn''t it a speako?
--------------------
You are not a real programmer until you end all your sentences with semicolons;
(c) 2000 ROAD Programming
You are unique. Just like everybody else.
Yanroy@usa.com
Visit the ROAD Programming Website for more programming help.