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
assassinhawk45 Offline
Junior Member

Posts: 31
Threads: 11
Joined: Dec 2012
Reputation: 0
#4
RE: Shaking Room

(01-18-2013, 04:08 PM)Mackiiboy Wrote:
(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

That cannot be correct. I've seen it many scripts, but I can never sort it out from the rest of the script. It's usually in the beginning of the map, where the player is lying on a bed, or something of the sort.

The Necromancer's Touch: WIP Coming March 2013
(This post was last modified: 01-18-2013, 04:33 PM by assassinhawk45.)
01-18-2013, 04:32 PM
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: 2 Guest(s)