Frictional Games Forum (read-only)
How to 'Wake Up' (For intros, etc) - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html)
+---- Thread: How to 'Wake Up' (For intros, etc) (/thread-4626.html)

Pages: 1 2 3


RE: How to 'Wake Up' (For intros, etc) - Lukaboy8 - 08-02-2012

Hello everyone I have a map called Bedroom.map. That's where I start in. I have a Bedroom.hps with the following code in it:

PHP Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(10);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"10"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}
void beginStory(string &in asTimer){
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);


If I start my custom story it does nothing of all the code in here:/ What did I do wrong?

Luke

EDIT: It's working know but my screen is shaking as hell in the whole wake up part:/ How do I fix it. I already changed the starting position. It's not in the ground, far from every object and I even tried to put him above the ground but it all doesn't work.