Archived

This topic is now archived and is closed to further replies.

PepsiPlease

Coloring Problems

Recommended Posts

PepsiPlease    122
Hi, I am making a small tile-based game. Whenever I draw the tiles, however, they all turn the color I tell one to. For instance, in my draw scene function I have three functions being called. It looks like this: drawglscene() { //some stuff draw_tiles(); draw_ball(); draw_floor(); //more stuff When I call the first one, it draws all the tiles a texture. On the next one, it is supposed to draws everything (that''s supposed to be it) a wall texture. In the next one, however, it draws only the tiles from the first function red, the color the ball is supposed to be. The ball does not get drawn, nor does the floor. So I''m wondering, what am I doing wrong? (Probably just some dumb newbie mistake, but hey, it stumped me...)

Share this post


Link to post
Share on other sites
nadam    122
The default color is white, so if you change it to red you need to change it back to white afterwards. If this doesn''t help, the error can only be found in the code of your draw_ functions, so you need to send this as well to the forum.

Share this post


Link to post
Share on other sites