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
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
darker level #452529
06/15/15 16:33
06/15/15 16:33
Joined: Jul 2012
Posts: 45
G
Gino_Fabrizio Offline OP
Newbie
Gino_Fabrizio  Offline OP
Newbie
G

Joined: Jul 2012
Posts: 45
Hi there! I want to know how to make the level darker with code. Also I want to know if there is some Flashlight and Torch Codes around there or tutorials. Thanks you!

Re: darker level [Re: Gino_Fabrizio] #452530
06/15/15 17:38
06/15/15 17:38

M
Malice
Unregistered
Malice
Unregistered
M



Sun_light =0; // 0r less them 50

I'm not sure if accessing the ambient light can be done with the level ent.

try level_ent.ambient =10;

Last edited by Malice; 06/15/15 17:42.
Re: darker level [Re: ] #452535
06/15/15 23:15
06/15/15 23:15
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
vec_set(sky_color,vector(0,0,0));
vec_set(ambient_color,vector(10,10,10));
sun_light = 0; // dark scene

EDIT: torches are just particle effects with some point lights

Flashlights require a bit more (including shaders) code to program in (if you're want it to work and look correctly)

As far as tutorial go, there aren't many (or any) that cover those topics....

Last edited by DLively; 06/15/15 23:18.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: darker level [Re: DLively] #452548
06/16/15 13:14
06/16/15 13:14
Joined: Jul 2012
Posts: 45
G
Gino_Fabrizio Offline OP
Newbie
Gino_Fabrizio  Offline OP
Newbie
G

Joined: Jul 2012
Posts: 45
Thanks for answering guys! It did work :))

Re: darker level [Re: Gino_Fabrizio] #452549
06/16/15 13:52
06/16/15 13:52
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
If you are working with WED don't forget to play with ambient and sun (File->Map properties->Sun).


Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

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