For those of you who have played Amnesia: The Dark Descent, what I’m trying to do is make a script that creates the visual “insanity” effects as well as the “terror” sound like when a monster sees you. I want the music and visuals to begin when you have reached a set amount of HP (15 or below, for example) and when an enemy is pursuing you.
For those of you who do not know what I mean, I want to make a script that (when the requirements above are met)
-makes the player’s vision blur
-slightly distorts color
-creates a sort of “fish-eye” effect
-plays+loops a sound
If this seems unrealistic, the reason I believe that this script is possible is simple - hours of toying around with the post-processing effects ingame.
I am very new to LUA coding. The reason I have posted this is to ask how difficult it would be to write a script like this, considering that I am a beginner.