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
Reverse FadeSepiaColorTo
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#1
Reverse FadeSepiaColorTo

I can't seem to find the proper function to return the screen's sepia back to normal. I currently have this:
void MobEffect(string &in asEntity, int alState) {
    StartScreenShake(0.2f, 2, 0.1f, 0.5f);
    FadeSepiaColorTo(2, 1);
    AddTimer("", 5, "ModEffect2");
}
void MobEffect2(string &in asTimer) {
    FadeSepiaColorTo(0, 1);
}

I tried using FadeIn(5) as well, but that didn't seem to work either.

Its hard to see the truth when you've been blinded by lies.
(This post was last modified: 03-25-2013, 10:29 PM by eagledude4.)
03-25-2013, 10:05 PM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#2
RE: Reverse FadeSepiaColorTo

(03-25-2013, 10:05 PM)eagledude4 Wrote: I can't seem to find the proper function to return the screen's sepia back to normal. I currently have this:
void MobEffect(string &in asEntity, int alState) {
    StartScreenShake(0.2f, 2, 0.1f, 0.5f);
    FadeSepiaColorTo(2, 1);
    AddTimer("", 5, "ModEffect2");
}
void MobEffect2(string &in asTimer) {
    FadeSepiaColorTo(0, 1);
}

I tried using FadeIn(5) as well, but that didn't seem to work either.

FadeSepiaColorTo(0, 1);
That does work - your problem is with the name of the callback in the timer, it doesn't match the function name below it Smile

AddTimer("", 5, "ModEffect2");
void MobEffect2(string &in asTimer)

03-25-2013, 10:22 PM
Find
eagledude4 Offline
Member

Posts: 144
Threads: 14
Joined: Dec 2011
Reputation: 0
#3
RE: Reverse FadeSepiaColorTo

Herp Derp, nothing to see here.

Its hard to see the truth when you've been blinded by lies.
03-25-2013, 10:29 PM
Find




Users browsing this thread: 1 Guest(s)