Game Dev Diary #5

Game Dev Diary #5


Light flickering
For our game I created a flickering light.

First I chose point light from game object and made a light flicker script.


Light Flickering Script


Then I changed the light intensity to 30 and added the light component from point light to the light flicker script. In the script the changed the min time to 0.1 and max time to 1.2. After that I added a light flickering sound effect which will vary depending on the distance the character is from that light source, to do that I altered the Volume rolloff to Linear rolloff and min distance to 1 and max distance to 15.37. 

Comments

Popular Posts