Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the Credits to Roll
Thief977 Offline
Junior Member

Posts: 8
Threads: 3
Joined: Aug 2011
Reputation: 0
#11
RE: Almost Done / Lang File Error

Ok, I now have the door working, and all that's left are the credits.
After that, I zip this up and put it up here. What's a basic code for an ending area?
Nothing with massive flair, jsut a fade-out to the credits? I tried placing an area called exit, but I don't think what I put is working, since nothing happens:

void exit(string&in asTimer)
{
AddTimer("timer02", 2.5f, "Credits");
}

void Credits(string&in asTimer)
{
StartCredits("29_amb_end_daniel.ogg", false, "Ending", "MainCredits", -1);
}


Am I supposed to put something in the onLeave section?
05-07-2012, 02:20 AM
Find Reply
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#12
RE: Getting the Credits to Roll

I would set the last number in StartCredits as a positive integer, as negative integers can mean something special.

StartCredits("29_amb_end_daniel.ogg", false, "Ending", "MainCredits", 4);

This should work if you are going for no code at the end.

05-07-2012, 05:39 AM
Find Reply




Users browsing this thread: 1 Guest(s)