Frictional Games Forum (read-only)
When using FadePlayerRollTo screen is shaking - 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: When using FadePlayerRollTo screen is shaking (/thread-20468.html)



When using FadePlayerRollTo screen is shaking - tonitoni1998 - 02-23-2013

the player enters a map (after he fell down a hole) and spawns in the air. he is surposed to have the head tended to the left so i used FadePlayerRollTo. but i want it to be tended instantly. so i put speed and max speed on 100.

Code:
void OnEnter()
{
//~                         INTRO
{
    FadeIn(1.0f);
    FadePlayerRollTo(30, 100, 100);
    SetPlayerActive(false);
    SetPlayerCrouching(true);
    MovePlayerHeadPos( 0.25f, -0.7f, -2.0f, 100, 0);
}
}

but when i try to make it faster, the screen is shaking. then i added the MovePlayerHeadPos and it was even shaking when i only used 100 then.

so why is it shaking? thanks Smile


RE: When using FadePlayerRollTo screen is shaking - NaxEla - 02-23-2013

Its shaking because your values for the speed are too high.


RE: When using FadePlayerRollTo screen is shaking - tonitoni1998 - 02-23-2013

(02-23-2013, 06:26 PM)NaxEla Wrote: Its shaking because your values for the speed are too high.

Code:
void OnEnter()
{
//~                         INTRO
{
    FadeIn(1.0f);
    FadePlayerRollTo(30, 10, 10);
    SetPlayerActive(false);
    SetPlayerCrouching(true);
    MovePlayerHeadPos( 0.25f, -0.6f, -2.0f, 10, 0);
}
}

changed every speed to 10. still shaking :/

oh i got it now. it was because i didnt have any( 0 ) slow down distance in the MovePlayerHeadPos.