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
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


Messages In This Thread
Play Credits When you Die - by GreyFox - 08-23-2011, 07:06 PM
RE: Play Credits When you Die - by BubbleTroll - 08-23-2011, 07:28 PM
RE: Play Credits When you Die - by Khyrpa - 08-23-2011, 07:32 PM
RE: Play Credits When you Die - by Kyle - 08-23-2011, 07:33 PM



Users browsing this thread: 1 Guest(s)