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


Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to 'Wake Up' (For intros, etc)
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#21
RE: How to 'Wake Up' (For intros, etc)

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: (Select All)
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.
(This post was last modified: 08-03-2012, 08:14 AM by Lukaboy8.)
08-02-2012, 07:50 PM
Find




Users browsing this thread: 2 Guest(s)