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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PlayerLookAt Intro (Pandemoneus')
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#3
RE: PlayerLookAt Intro (Pandemoneus')

(09-21-2010, 09:00 PM)Pandemoneus Wrote: Make sure you do Intro(); in OnStart() Tongue

//---- BEGIN INTRO ----//
if(!ScriptDebugOn()) Intro(); //no intro when you are testing
else AddDebugMessage("Skipping Intro", false);

By the way, I found ways to make it look better in the code, but I will start using them on my next map.

Ohh, maybe that's why... I'll check it out!

EDIT: Yup, that was it, thanks for your help!
Is there any way to combine the StartPlayerLookAt with a WakeUp Script, so it's as if the player had just woken up and then coughs and looks around?

Here's the WakeUp script I have:
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);
}

Check out my custom stories(1)(2)!
(This post was last modified: 09-21-2010, 09:33 PM by theDARKW0LF.)
09-21-2010, 09:03 PM
Find


Messages In This Thread
RE: PlayerLookAt Intro (Pandemoneus') - by theDARKW0LF - 09-21-2010, 09:03 PM



Users browsing this thread: 1 Guest(s)