Frictional Games Forum (read-only)
FRIGGIN CAMERA STOP SHAKIN - 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: FRIGGIN CAMERA STOP SHAKIN (/thread-11443.html)



FRIGGIN CAMERA STOP SHAKIN - sgthale - 11-21-2011


Okay so I did

Code:
MovePlayerHeadPos(0, -0.8, 0, 1.4, -0.8);


so the player simulates falling and then it changes to the next map. HOWEVER, when the player spawns in the next map, the camera is stuttering and shaking a little bit. I tried undoing it by doing

Code:
MovePlayerHeadPos(0, 0, 0, 1.4, -0.8);


so the camera Y goes back to normal (0). Still it doesnt stop shaking.

I tried ChangePlayerStateToNormal();
that didnt do anything either

HELP



RE: FRIGGIN CAMERA STOP SHAKIN - flamez3 - 11-21-2011

My first guess is to change all the floats to 0.0f?


RE: FRIGGIN CAMERA STOP SHAKIN - sgthale - 11-21-2011

(11-21-2011, 07:45 AM)flamez3 Wrote: My first guess is to change all the floats to 0.0f?
nope still doesnt work.

HELP


RE: FRIGGIN CAMERA STOP SHAKIN - Khyrpa - 11-21-2011

First of all. You are using decimals without the float extension thing. Then why did you minus for the slowdowndistance?

I think the best way to try and get the view back into right spot would be to use fast speed and 0 in the slowdowndistance, while the player is in FadeOut. I have no idea if head position stays to the next map, but you should try if you change the pos back before changing.

And yeah. If you use decimals, put f behind them.
like
MovePlayerHeadPos(6.5f, 0.5f, 0, 55.5f, 0);

And then I want to add that when I made my teamnesia map, it has this one cutscene event what is done mainly with moveplayerheadpos. It feels really buggy to get right and it has all sort of problems show up when using. Just test things out and it should work at some point. Hell, even mine came out good with something I really did not try to do.



RE: FRIGGIN CAMERA STOP SHAKIN - Your Computer - 11-21-2011

Change the speed from 1.4 to 1.