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)
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#19
RE: How to 'Wake Up' (For intros, etc)

void wakeUp()
{
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(20); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 11.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(0, 33, 33); // Change all settings to defaults
FadeRadialBlurTo(0.0, 1);
FadeSepiaColorTo(0, 4);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
}


____________________________________________________________-
I've made the font red for corrected parts, don't mind me if i'm wrong i'm still a noob at scripting and i'm about to check this out Cool
06-08-2012, 02:44 PM
Website Find


Messages In This Thread
RE: How to 'Wake Up' (For intros, etc) - by jens - 09-21-2010, 06:10 AM
RE: How to 'Wake Up' (For intros, etc) - by house - 11-16-2010, 11:34 PM
RE: How to 'Wake Up' (For intros, etc) - by house - 11-19-2010, 07:18 PM
RE: How to 'Wake Up' (For intros, etc) - by Ongka - 02-26-2011, 10:15 AM
RE: How to 'Wake Up' (For intros, etc) - by MaZiCUT - 06-08-2012, 02:44 PM



Users browsing this thread: 1 Guest(s)