Jump to content
  • Advertisement

Archived

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

PepsiPlease

Coloring Problems

This topic is 5883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!