Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shaking Room
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#3
RE: Shaking Room

(01-18-2013, 03:50 PM)assassinhawk45 Wrote: I'm new to Amnesia scripting and I do not know how to make an area shake. I've seen it before in other stories, but I can not figure it out. Another thing that I need help with is making the player lie down. All help would be appreciated.

There is no possible way making the players body to lie down, but it could easily be simulated by changing the players head position in x,y,z and rotate the position ~90 degree so it looks like you are lying down.

I would recommend you making the player crouching and inactive during the event by using:

SetPlayerActive(false);
SetPlayerCrouching(true);

and then rotate the head by using:

void FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);

Rotates the position of the camera on the player's body.

afX - angle of rotation of head, positive being counter-clockwise
afSpeedMul - speed (possibly acceleration) multiplier of the rotation (default 1, which is really slow)
afMaxSpeed - maximum speed of rotation
(This post was last modified: 01-18-2013, 04:09 PM by Mackiiboy.)
01-18-2013, 04:08 PM
Website Find


Messages In This Thread
Shaking Room - by assassinhawk45 - 01-18-2013, 03:50 PM
RE: Shaking Room - by Adny - 01-18-2013, 03:58 PM
RE: Shaking Room - by Mackiiboy - 01-18-2013, 04:08 PM
RE: Shaking Room - by assassinhawk45 - 01-18-2013, 04:32 PM
RE: Shaking Room (STILL NEED HELP!) - by NaxEla - 01-18-2013, 05:34 PM



Users browsing this thread: 1 Guest(s)