Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, kzhao, alibaba, 7th_zorro), 650 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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