Frictional Games Forum (read-only)

Full Version: When using FadePlayerRollTo screen is shaking
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Its shaking because your values for the speed are too high.
(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.