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!
Posted By: Anonymous
Re: darker level - 06/15/15 17:38
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;
Posted By: DLively
Re: darker level - 06/15/15 23:15
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....
Thanks for answering guys! It did work :))
Posted By: 3run
Re: darker level - 06/16/15 13:52
If you are working with WED don't forget to play with ambient and sun (File->Map properties->Sun).
Greets