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
Death to main menu
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: Death to main menu

As far as i am aware, it isn't possible to force the game to exit when dead (except inside the justine full conversion), and if it is possible - you will probably need a full conversion. However, you can achieve the same effect without a full conversion rather trivially by using StartCredits (This also has the benefit of not outright exiting the game too). All you need to do is set a checkpoint callback which then starts a set of pseudo-credits saying "game over" or something.

Example:
Spoiler below!

void OnEnter() {
CheckPoint("GameOver","PlayerStartArea_1","cbGameOver", "", "");
}

void cbGameOver(string &in asName, int alCount) {
StartCredits("GameOverMusic.ogg", false, "Game", "GameOver", 0);
}

with a .lang category:
<Category name="Game">
<Entry name="GameOver">Some text or prologue or something...</Entry>
</Category>

(This post was last modified: 08-02-2012, 10:35 PM by Apjjm.)
08-02-2012, 10:32 PM
Find


Messages In This Thread
Death to main menu - by HeadyBoy - 08-02-2012, 07:55 PM
RE: Death to main menu - by Apjjm - 08-02-2012, 10:32 PM
RE: Death to main menu - by HeadyBoy - 08-03-2012, 12:15 AM
RE: Death to main menu - by HeadyBoy - 08-03-2012, 01:33 AM
RE: Death to main menu - by Your Computer - 08-03-2012, 01:49 AM



Users browsing this thread: 1 Guest(s)