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

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

I copied another poster's code to make the player spawn in as if asleep, but when lying on his side, my character's view jitters back and forth rapidly - it's not staying still while on it's side like it should be...

The code I used was:
void wakeUp () {
    FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    FadeIn(20);      // Amount of seconds the fade in takes
    FadeImageTrailTo(2, 2);
    FadeSepiaColorTo(100, 4);
    SetPlayerActive(false);    
    FadePlayerRollTo(50, 220, 220);                 // "Tilts" the players head
    FadeRadialBlurTo(0.15, 2);
    SetPlayerCrouching(true);              // Simulates being on the ground
    AddTimer("trig1", 11.0f, "beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
    ChangePlayerStateToNormal();
    SetPlayerActive(true);
    FadePlayerRollTo(0, 33, 33);        // Change all settings to defaults
    FadeRadialBlurTo(0.0, 1);
    FadeSepiaColorTo(0, 4);
    SetPlayerCrouching(false);
    FadeImageTrailTo(0,1);
}

But I have since edited it and integrated it into Pandemoneus' StartPlayerLookAt Intro, and it still jitters about both before and after... Any ideas why it is like this?

Check out my custom stories(1)(2)!
09-22-2010, 02: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)