Frictional Games Forum (read-only)
Wake Up weird shaking effect - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Wake Up weird shaking effect (/thread-31664.html)



Wake Up weird shaking effect - RavenInvazion - 11-09-2015

Hello,

Although I've recently started my adventure with HPL editor, I wanted to make a nice start for the game, using Wake Up script. My coding is very amateur, though I kind of understand what is where and why. Here it is:

PHP Code:
void OnStart() 

    
wakeUp();
}
void wakeUp () 
{
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(20);      // Amount of seconds the fade in takes
    
PlaySoundAtEntity("Player""react_breath.snt""Player"0.1false);
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
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);
    
PlaySoundAtEntity("Player""react_breath.snt""Player"0.1false);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
    
PlaySoundAtEntity("Player""react_pant.snt""Player"0.1false);


When I enter the game, it begins fine, but as soon as my character "opens eyes" the view is heavily shaking. I tried removing some functions from the script, but it didn't help at all. I've read that the spawn point shouldn't touch anything, but mine is floating in the middle of a room, and there's enough space for it. I appreciate any help.[/quote]


RE: Wake Up weird shaking effect - Mudbill - 11-09-2015

Shaking? Does it not happen if you exclude the entire sequence?

Since there's no StartScreenShake effect in there, I can only think of it being caused by FadeRadialBlurTo or FadeImageTrailTo. The others don't really impact such a thing in any way.


RE: Wake Up weird shaking effect - FlawlessHappiness - 11-10-2015

I think I've noticed it happen with FadePlayerRollTo. If it doesn't disappear when excluding FadeRadialBlur, try FadePlayerRollTo.


RE: Wake Up weird shaking effect - RavenInvazion - 11-11-2015

Excluding FadeRadialBlur reducedd the shaking effect a bit, but excluding FadePlayerRollTo after this removed the shaking completely.


RE: Wake Up weird shaking effect - Mudbill - 11-11-2015

You should try testing around with see if it happens every time you use those scripts because it really shouldn't. Though, I have experienced that sometimes the RadialBlur or ImageTrail can be a bit too strong, but I haven't experienced the rolling to make things shaky. All it should do is rotate the camera view.


RE: Wake Up weird shaking effect - RavenInvazion - 11-11-2015

Hm... it seems that RadialBlur alone isn't causing it, but whenever I add PlayerRollTo, the shaking appears.

Edit: I lowered the PlayerRollTo speed and it removed the shake effect. Weird.