Changing the background colour in game

Non-platform specific questions.

Changing the background colour in game

Postby BloodRedDragon » Sat Feb 12, 2011 6:24 pm

Is there a function that allows you to change the game's primary background color (without using any image files?)
Current projects:
Techno-Tank Arena: on hold
Techno-Tank SuperPortal (working title): 0.1%
Bowels of Galaxies: 35% (was a bit too optimistic)
User avatar
BloodRedDragon
 
Posts: 123
Joined: Tue Jan 29, 2008 10:07 pm
Location: The Underworld
Score: 5 Give a positive score

Re: Changing the background colour in game

Postby Game A Gogo » Sat Feb 12, 2011 6:48 pm

unfortunetly no. But you can use a canvas and the "erase(r,g,b,alpha);" function
also remember you can always change the r, g and b values on an image
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Changing the background colour in game

Postby BloodRedDragon » Sat Feb 12, 2011 8:41 pm

Ah that's great... its just using an image as a background could make the game slower.... :(
Thanks vmuch anyways :P
Current projects:
Techno-Tank Arena: on hold
Techno-Tank SuperPortal (working title): 0.1%
Bowels of Galaxies: 35% (was a bit too optimistic)
User avatar
BloodRedDragon
 
Posts: 123
Joined: Tue Jan 29, 2008 10:07 pm
Location: The Underworld
Score: 5 Give a positive score

Re: Changing the background colour in game

Postby Game A Gogo » Sat Feb 12, 2011 8:48 pm

disable the collision state on actors not needing collision check
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron