The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Screen effects
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#1
Screen effects

Yea, so you all know the default screen effects:

FadeOut, FadeImageTrailTo, etc. you name it Wink

But i noticed that FG took some screen effects, and made them look like something new.
Something that i haven't seen in any custom story yet.

I recreated one i found.
It makes the screen jump at different times.
It is used in the storage, when the "Not-traditional-fire" lights and the girl screams.

Spoiler below!


void Function()
{

StartScreenShake(0.5f, 0.01f, 0.1f, 0.02f);
PlaySoundAtEntity("Boom", "scare_wall_stomp.snt", "Player", 0.0f, false);

AddTimer("Shake_1", 0.2f, "ShakeTimer");
AddTimer("Shake_2", 0.6f, "ShakeTimer");
AddTimer("Shake_3", 1.2f, ShakeTimer");
AddTimer("Shake_4", 1.5f, "ShakeTimer");
AddTimer("Shake_5", 2.5f, "ShakeTimer");
AddTimer("Shake_6", 4.0f, "ShakeTimer");
}

void ShakeTimer(string &in asTimer)
{
if(asTimer == "Shake_1")
{
StartScreenShake(0.7f, 0.1f, 0.05f, 0.02f);
PlaySoundAtEntity("thunmp", "scare_tingeling", "Player", 0.0f, false);
}

if(asTimer == "Shake_2")
{
StartScreenShake(1.0f, 0.01f, 0.05f, 0.1f);
FadeRadialBlurTo(1, 0.1f);
}

if(asTimer == "Shake_3")
{
PlaySoundAtEntity("creak", "00_creak", "Player", 2, false);
StartScreenShake(0.3f, 0.01f, 0.05f, 0.02f);
}

if(asTimer == "Shake_4")
{
StartScreenShake(0.7f, 0.02f, 0.05f, 0.05f);
}

if(asTimer == "Shake_5")
{
StartScreenShake(0.7f, 0.02f, 0.05f, 0.05f);
}

if(asTimer == "Shake_6")
{
StopSound("creak", 4.0f);
FadeRadialBlurTo(0, 0.1f);
}
}



You can also make the monster-sanitydrain-vision by using low values of FadeRadialBlurTo

I'd like to know, if you have any custom screen effects? And would you share them?

Trying is the first step to success.
(This post was last modified: 11-21-2012, 06:08 PM by FlawlessHappiness.)
11-21-2012, 05:48 PM
Find


Messages In This Thread
Screen effects - by FlawlessHappiness - 11-21-2012, 05:48 PM
RE: Screen effects - by Rurikkur - 11-22-2012, 05:27 AM
RE: Screen effects - by FlawlessHappiness - 11-22-2012, 10:36 AM
RE: Screen effects - by Rurikkur - 11-22-2012, 10:29 PM
RE: Screen effects - by FlawlessHappiness - 11-23-2012, 07:01 AM
RE: Screen effects - by GrAVit - 11-23-2012, 09:52 AM
RE: Screen effects - by FlawlessHappiness - 11-23-2012, 10:01 AM
RE: Screen effects - by GrAVit - 11-23-2012, 10:13 AM



Users browsing this thread: 1 Guest(s)