Skip to content

Basically, Quake Light Animation script but made from scratch for Unity. Use this script as you please.

License

Notifications You must be signed in to change notification settings

BioHazardAlBatros/Quake-Light-Flicker-Unity-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS SCRIPT WAS MADE FOR UNITY.

Pros:

-Easy animation

-Can be used to make a scripted sequence animation

-It works

How to use:

1.Create an object with light component.

2.Attach this script to the same object.

3.It just works!

NewCustomAnim property(string):

Type any string using ONLY latin a-z characters. Any other character will be considered as "a" or «No light».

a - is «No light»

m - is «Normal intensity»

z - is «Double intensity»

AnimationPreset property(int):

If CustomAnim property is empty, script uses preset 0 as default(No animation; Normal intensity) If chosen AnimationPreset is missing, script uses preset 0 as default(No animation; Normal intensity)

Premade presets:

-1: Broken Light (No light)

0: Normal Light

1: Flicker 1

2: Slow strong pulse

3: Candle 1

4: Fast Strobe

5: Gentle Pulse

6: Flicker 2

7: Candle 2

8: Candle 3

9: Slow strobe 4

10: Fluorescent Flicker

11: Slow pulse not fade to black

12-XX:Your own preset!

Delay property(int):

Change this value to decrease/increase delay between light updates.

AddIntenstity property(float):

Change this value to add some more intensity to EVERY intensity change.

Reinitialize property(bool):

Allows you to generate the new animation in Editor/by other scripts. Just check the box and some magic will happen.

StartIntensity property(float): It's an intensity multiplier that lets you change intensity "normally" during runtime. When the game is initialized, this property takes it's value from Light Intensity in Start() function. And uses it in calculations.

About

Basically, Quake Light Animation script but made from scratch for Unity. Use this script as you please.

Topics

Resources

License

Stars

Watchers

Forks

Languages