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 to stop music when going next level on door?
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#9
RE: How to stop music when going next level on door?

(07-10-2011, 08:26 PM)Acies Wrote: The priority of the stopmusic will only stop music played at that "level" of priority. Make sure you set the same priority on the previous playmusic as the stopmusic.

void MusicControl(string &in asParent, string &in asChild, int alState)
{
if(alState == 1) PlayMusic("01_amb_darkness.ogg", true, 1.0f, 0, 0, true);
if(alState == -1) StopMusic(2, 0);
}

void MusicControl2(string &in asParent, string &in asChild, int alState)
{
PlayMusic("You Only Live Once.ogg", false, 1.0f, 0, 0, true);
StopMusic(2, 0);
}

Like this?

EDIT: Nevermind I just make 20s track then It disappears Smile

Thanks anyways to everyone. Now I can finish this release to the end.

“Life is a game, play it”
(This post was last modified: 07-10-2011, 09:15 PM by HumiliatioN.)
07-10-2011, 08:35 PM
Find


Messages In This Thread
RE: How to stop music when going next level on door? - by HumiliatioN - 07-10-2011, 08:35 PM



Users browsing this thread: 1 Guest(s)