Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Colored Screen
diabi85 Offline
Junior Member

Posts: 9
Threads: 2
Joined: Jul 2011
Reputation: 0
#5
RE: Colored Screen

(07-29-2011, 02:54 PM)Kyle Wrote: You would have to to place a box light that covers everything in the level and keep it at a somewhat low number for light value (like 0.2 for dark, 0.4 for mid, and 0.7 for bright, and 1.0 for max). Then use this to change the value of it:

FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);

Changes the properties of a light.

asLightName - internal name
afR - red value
afG - green value
afB - blue value
afA - alpha value
afRadius - radius of the light. -1 means keeping the radius
afTime - time in seconds until change is done


Then you could use it to change back to the original lighting etc.


Thanks, that worked pretty well!

Anyway, do you know if I can also change the color of the screen when the player is close to death? (let's say I want it blue instead of red)
It seems I can change the noise frequency (in "game.cfg"), but when I change the color values the color keeps being red!
07-30-2011, 02:00 PM
Find


Messages In This Thread
Colored Screen - by diabi85 - 07-29-2011, 02:20 PM
RE: Colored Screen - by Khyrpa - 07-29-2011, 02:21 PM
RE: Colored Screen - by diabi85 - 07-29-2011, 02:45 PM
RE: Colored Screen - by Kyle - 07-29-2011, 02:54 PM
RE: Colored Screen - by diabi85 - 07-30-2011, 02:00 PM
RE: Colored Screen - by Your Computer - 07-30-2011, 08:32 PM
RE: Colored Screen - by diabi85 - 07-31-2011, 12:53 AM



Users browsing this thread: 1 Guest(s)