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
Glitchy/Jittery Sleep?
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#3
RE: Glitchy/Jittery Sleep?

That's my point though, even before I integrated the StartPlayerLookAt into the WakeUp script, it still stuttered. But if it helps, I'll post my code below:

void Intro()
{
    AddDebugMessage("Begin Intro", false);
    SetPlayerCrouching(true);
    SetPlayerActive(false);
    FadeOut(0.0f);
    FadeIn(12.0f);
    FadeImageTrailTo(2, 2);
    FadePlayerRollTo(50, 220, 220);                 // "Tilts" the players head
    AddTimer("1", 2, "IntroTimer");
    AddTimer("2", 2.5f, "IntroTimer");
    AddTimer("3", 3, "IntroTimer");
    AddTimer("4", 4, "IntroTimer");
    AddTimer("5", 6, "IntroTimer");
}

void IntroTimer(string &in asTimer)
{
    if(asTimer == "1"){
        PlayGuiSound("player_cough.snt", 0.7f);
    }
    else if(asTimer == "2"){
        SetPlayerCrouching(false);
    }
    else if(asTimer == "3"){
        StartPlayerLookAt("candlestick_tri_1", 2.0f, 1.0f, "");
    }
    else if(asTimer == "4"){
        StopPlayerLookAt();
        StartPlayerLookAt("DoorScript", 3.0f, 3.0f, "");
        PlayGuiSound("react_breath_slow", 0.7f);
    }
    else if(asTimer == "5"){
        StopPlayerLookAt();
        FadeImageTrailTo(0, 1.0f);
        FadePlayerRollTo(0, 33, 33);        // Change all settings to defaults
        FadeSepiaColorTo(0, 4);
        PlayGuiSound("react_breath_slow", 0.5f);
        SetPlayerActive(true);
        SetMessage("Message", "Hint0", 0);
        AddDebugMessage("End Intro", false);
    }
}

Check out my custom stories(1)(2)!
09-22-2010, 05:23 AM
Find


Messages In This Thread
Glitchy/Jittery Sleep? - by theDARKW0LF - 09-22-2010, 02:23 AM
RE: Glitchy/Jittery Sleep? - by jens - 09-22-2010, 05:11 AM
RE: Glitchy/Jittery Sleep? - by theDARKW0LF - 09-22-2010, 05:23 AM
RE: Glitchy/Jittery Sleep? - by jens - 09-22-2010, 05:43 AM
RE: Glitchy/Jittery Sleep? - by theDARKW0LF - 09-22-2010, 05:47 AM
RE: Glitchy/Jittery Sleep? - by DamnNoHtml - 09-22-2010, 10:31 PM



Users browsing this thread: 1 Guest(s)