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
StartEffectFlash syntax incorrect?
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
StartEffectFlash syntax incorrect?

If this question has been asked before, apologies, I ran a search and didn't find any mention of it before.

The wiki says this is the syntax for StartEffectFlash: (float afFadeIn, float afWhite, float afFadeOut);

However, the last float seems to control both the fade-in and fade-out and the other two floats don't seem to do anything at all. I'm trying to get the screen to fade completely to white in 5 seconds and then turn back to normal instantly. So what's the problem with this?

10-01-2013, 12:16 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: StartEffectFlash syntax incorrect?

That function has always worked like that as far as i've known it. If you don't mind the slight darkness in the beginning, you can try:
PHP Code: (Select All)
FadeOut(0);
StartEffectFlash(050);
FadeIn(5); 

Tutorials: From Noob to Pro
10-01-2013, 02:54 AM
Website Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#3
RE: StartEffectFlash syntax incorrect?

I tried that, but the screen goes instantly white, lasts for 5 seconds, and then instantly goes back to normal again. So there doesn't seem to be any way to have different times for fading in and out?

10-03-2013, 07:48 PM
Find




Users browsing this thread: 1 Guest(s)