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
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#3
RE: Death to main menu

(08-02-2012, 10:32 PM)Apjjm Wrote: 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:
Some text or prologue or something...




Why thank you very much Big Grin I will try this as soon as I can and give you my feedback then

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
08-03-2012, 12:15 AM
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)