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
Credits/Ending The Game [Resolved]
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#1
Credits/Ending The Game [Resolved]

I need it for a demo I'm making and I would like to know how make credits appear and the game finish when the player enters a area Huh
Thanks!

(This post was last modified: 05-15-2011, 11:08 AM by WatzUpzPeepz.)
05-15-2011, 01:00 AM
Find
triadtimes Offline
Senior Member

Posts: 508
Threads: 16
Joined: Jan 2011
Reputation: 21
#2
RE: Credits/Ending The Game

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

asMusic - the music to play (including .ogg)
abLoopMusic - determines whether the music should loop
asTextCat - the category to be used in the .lang file (Like <CATEGORY Name = "Credits">)
asTextEntry - the entry in the .lang file (<Entry Name = "Credits">)
alEndNum - Amnesia has 3 different endings and displayed a code at the bottom. Determines which code is displayed (Use -1 if you don't want one)

Example:
In Level Script -
StartCredits("ending_daniel.ogg", false, "Endings", "Credits", -1);

In .lang File -
<CATEGORY Name = "Endings">
<Entry Name = "Credits">CREDITS GO HERE</Entry>
</CATEGORY>

05-15-2011, 02:07 AM
Find




Users browsing this thread: 3 Guest(s)