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
When using FadePlayerRollTo screen is shaking
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
When using FadePlayerRollTo screen is shaking

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.

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

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 02-23-2013, 06:24 PM by tonitoni1998.)
02-23-2013, 06:23 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#2
RE: When using FadePlayerRollTo screen is shaking

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

In Ruins [WIP]
02-23-2013, 06:26 PM
Find
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#3
RE: When using FadePlayerRollTo screen is shaking

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

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.

When you are looking for someone, to do the scripting for your Custom Story, ask me!
(This post was last modified: 02-23-2013, 06:37 PM by tonitoni1998.)
02-23-2013, 06:30 PM
Find




Users browsing this thread: 1 Guest(s)