Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, Ayumi, 7th_zorro), 877 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
how do I change the background col to red on script23.c tutorial #301388
12/10/09 04:04
12/10/09 04:04
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
when loading script23.c that is mentioned in the tutorial. I get the programmers robot walking.
I wanted to change the background color to red.
I placed "screen_color.red = 150;" line in the space below.
When I run the script it still shows up blue. What am I doing wrong? I am not changing anything else is scipt just adding that line.
(I have same problem when loading a level.)

function main()
{
video_mode = 7;
screen_color.red = 150;
level_load ("");
wait(2);
ent_create("robot.mdl", vector(400, 0, -50), rotate_bone);
mouse_map = crosshair_pcx;
mouse_mode = 2;
{
vec_set(mouse_pos, mouse_cursor);
wait (1);
}

Re: how do I change the background col to red on script23.c tutorial [Re: ncc1701d] #301397
12/10/09 08:32
12/10/09 08:32
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
screen_color is for the screen of window screen color. since u level_load an empty level, the level will overide this color.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: how do I change the background col to red on script23.c tutorial [Re: delinkx] #301425
12/10/09 13:59
12/10/09 13:59
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
make the sky_color instead of screen_color red after loading the level.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: how do I change the background col to red on script23.c tutorial [Re: Helghast] #301485
12/11/09 01:33
12/11/09 01:33
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
use
Code:
vec_set(sky_color, vector(0,0,150));

as you'll also need to change the sky_color.blue to 0,otherwise you'll end up with a purple sky (background)

hope this helps

Re: how do I change the background col to red on script23.c tutorial [Re: MrGuest] #301633
12/12/09 09:29
12/12/09 09:29
Joined: Dec 2009
Posts: 71
N
ncc1701d Offline OP
Junior Member
ncc1701d  Offline OP
Junior Member
N

Joined: Dec 2009
Posts: 71
ah yes..thanks everyone I got it. cool!


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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