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
Script Help Eye Blinking Script?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#8
RE: Eye Blinking Script?

So I'll answer the actual question of the thread. I made a function named Blink, where you can just use it in a regular looping timer.

void Blink(float fFadeOut, float fFadeIn)
{
    FadeOut(fFadeOut);
    AddTimer("loop", fFadeOut, "TimerBlink");
}

void TimerBlink(string asTimer) { FadeIn(fFadeIn); }

So let's say you have a looping timer ready, you place this function in it.

void LoopTimer(string asTimer)
{
      Blink(1.5f, 2.0f);
}

fFadeOut stands for how quick you want the player to close his eyes, meanwhile fFadeIn stands for how quick you want the player to open his eyes.

Derp.
06-07-2015, 12:00 PM
Find


Messages In This Thread
Eye Blinking Script? - by goodcap - 06-07-2015, 03:18 AM
RE: Eye Blinking Script? - by FlawlessHappiness - 06-07-2015, 03:22 AM
RE: Eye Blinking Script? - by DnALANGE - 06-07-2015, 10:34 AM
RE: Eye Blinking Script? - by Slanderous - 06-07-2015, 11:13 AM
RE: Eye Blinking Script? - by Radical Batz - 06-07-2015, 11:15 AM
RE: Eye Blinking Script? - by DnALANGE - 06-07-2015, 11:22 AM
RE: Eye Blinking Script? - by RaideX - 06-07-2015, 11:23 AM
RE: Eye Blinking Script? - by Neelke - 06-07-2015, 12:00 PM
RE: Eye Blinking Script? - by Kreekakon - 06-07-2015, 12:02 PM



Users browsing this thread: 1 Guest(s)