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
Play Credits When you Die
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#1
Play Credits When you Die

Hey Guys. I need to know how to play credits when you die. But only at one point (SPOILER......)


Ending of my custom story.

Also How do I even make some credits? I'm guessing in the extra_english.lang and make a category named "Credits" and then add entrys? or just one entry.

Thanks

-Grey Fox

Current Project
Forgotten
08-23-2011, 07:06 PM
Find
BubbleTroll Offline
Junior Member

Posts: 30
Threads: 6
Joined: Aug 2011
Reputation: 0
#2
RE: Play Credits When you Die

I think there was a function like if the game sees you got 0 hp left its going to run a function.
But i have no clue about the credit part.
08-23-2011, 07:28 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#3
RE: Play Credits When you Die

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

that and

StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);

All you need. Check what each string etc. means in the Script functions page

08-23-2011, 07:32 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Play Credits When you Die

Half way down my post in this thread, it'll talk about setting up the credits.

http://www.frictionalgames.com/forum/thr...l#pid83125

To check if the player's dead, this might work:

void OnStart()
{
     if (GetPlayerHealth() <= 0)
     {
          // Insert Credits command function here.
     }
}

You can put this code wherever you want to like if you want the credits to start when the player reaches a certain point or something. I hope this helps at the very least. Smile

Edit: CRAP! Ninja'd! xD

(This post was last modified: 08-23-2011, 07:34 PM by Kyle.)
08-23-2011, 07:33 PM
Find




Users browsing this thread: 1 Guest(s)