Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
screen background question?? #340758
09/07/10 14:35
09/07/10 14:35
Joined: Jun 2010
Posts: 30
rangpur,bangladesh
J
Jahid Offline OP
Newbie
Jahid  Offline OP
Newbie
J

Joined: Jun 2010
Posts: 30
rangpur,bangladesh

in lite-c Workshop 01: Getting to know the engine

function main( )
{
level_load("small.hmp");
ent_create("earth.mdl", vector(10, 20, 30), NULL);
}


it's background always remain blue.

i am trying to change that colour.
i have used this statments:

screen_color.green =150;
screen_color.red =150;
screen_color.blue =150;

also


vec_set(screen_color,vector(200,100,0));

nothing happend.


how to change it??


i have read vec_set() and screen_color from manual.
and
have also seen

typedef struct COLOR
{
var blue,green,red;
} COLOR;

in atypes.h.




why

screen_color.green =100;
and
vec_set(screen_color,vector(200,100,0));

did not work???


keep moving forward
Re: screen background question?? [Re: Jahid] #340759
09/07/10 14:38
09/07/10 14:38
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Put simply, "screen_color" is for when you have NOT loaded a level.
If you HAVE loaded a level (as your are), then use "sky_color" instead...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1