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
Storfigge Offline
Member

Posts: 101
Threads: 31
Joined: Sep 2012
Reputation: 0
#1
Credits

So im kind of done with my map but I'm having some issues with the end credits :S I've been looking on the wiki and searching around the forums here but I still don't understand what to.

In .lang I've written


<CATEGORY Name="Ending">



<Entry Name="MainCredits">

blablablabal
</Entry>


</CATEGORY>


In my hps file i wrote

void OnStart()



{
AddEntityCollideCallback("Player", "Start_Credits", "MainCredits", true, 1);

}



void Credits(string &in asParent, string &in asChild, int alState)


{
StartCredits("my music.ogg", true, "ending", "MainCredits", 4);
}



void OnEnter()
{


}



void OnLeave()
{


}


I'm a big noob at this so I've just experimented hoping I will get it right... So please tell me what I've done wrong.

11-20-2012, 03:15 PM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#2
RE: Credits

void OnStart()



{
AddEntityCollideCallback("Player", "Start_Credits", "MainCredits", true, 1);

}



void Credits(string &in asParent, string &in asChild, int alState)


{
StartCredits("my music.ogg", true, "ending", "MainCredits", 4);
}


Your function is named wrongly. It should be name as your callback says, "MainCredits"

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 11-20-2012, 05:33 PM by GoranGaming.)
11-20-2012, 05:20 PM
Website Find




Users browsing this thread: 2 Guest(s)