Glitchy/Jittery Sleep? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Glitchy/Jittery Sleep? (/thread-4651.html) |
Glitchy/Jittery Sleep? - theDARKW0LF - 09-22-2010 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: Code: void wakeUp () { 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? RE: Glitchy/Jittery Sleep? - jens - 09-22-2010 It's better you post the code you have instead of one of the example you used. I am guessing it is the startplayerlookat that has too high values or a bit of a conflict in script making it hard to it to make up its mind, so the camera stutters. RE: Glitchy/Jittery Sleep? - theDARKW0LF - 09-22-2010 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: Code: void Intro() RE: Glitchy/Jittery Sleep? - jens - 09-22-2010 Ah sorry read too fast the second part. Have you tried to disable FadeImageTrailTo in the script? That can look a bit stuttering if having strange values. Maybe lower the values in FadePlayerRollTo? perhaps change 220 to as low as 10 and go from there up. RE: Glitchy/Jittery Sleep? - theDARKW0LF - 09-22-2010 I'll try that, thanks. - EDIT: Ok so I reduced the 220 to 150 and it works like a charm now, thanks! Question: Why do most people put in an F after their numerical values in their scripts? I don't and everything seems to still work fine. RE: Glitchy/Jittery Sleep? - DamnNoHtml - 09-22-2010 I should probably edit that in my post :O The higher value didn't cause this error for me though, weird. |