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
how make music stop and make player freeze
ksnider Offline
Junior Member

Posts: 9
Threads: 0
Joined: Jul 2012
Reputation: 0
#2
RE: how make music stop and make player freeze

First of all, change:

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("03_paper_daniel02.ogg", true, 0.8, 2, 0, true);

}

To:

void StartMusic(string &in asParent, string &in asChild, int alState)
{
PlayMusic("03_paper_daniel02.ogg", true, 0.8, 2, 0);
}

"PlayMusic" only has five parameters.

To stop the music when you leave the map, move "StopMusic" into "void OnLeave()". It should look like this.

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(1,0);
}

Creator of Pewdie's Revenge
07-30-2012, 02:23 AM
Find


Messages In This Thread
RE: how make music stop and make player freeze - by ksnider - 07-30-2012, 02:23 AM



Users browsing this thread: 1 Guest(s)