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


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music Loops
wretic91 Offline
Junior Member

Posts: 21
Threads: 11
Joined: Jan 2012
Reputation: 0
#1
Music Loops

Hi everyone,

im having a little problem.. when i start a new game with my mod..i dont got any problems.. when i enter another map nothing happens.. but if i exit the game.. the music keeps playing.. if i enter another custom story.. it still keeps playing... now i tryed some codes.. but it didnt work.. anyone can help me out? here is the script.

void OnStart()
{

PlayMusic("entrance_1.ogg", true, 80, 1, 0, false);
}

void OnLeave()
{
}


what can i add so it wont continue when i go back to the menu!

Wretic.
03-11-2012, 04:43 PM
Find
Mehis Offline
Member

Posts: 184
Threads: 10
Joined: Sep 2011
Reputation: 4
#2
RE: Music Loops

Have you tried to stop the music when you leave the level? You can just do PlayMusic again on the second level...
I didn't quite understand your problem. Lol
03-11-2012, 04:47 PM
Find
wretic91 Offline
Junior Member

Posts: 21
Threads: 11
Joined: Jan 2012
Reputation: 0
#3
RE: Music Loops

(03-11-2012, 04:47 PM)Mehis Wrote: Have you tried to stop the music when you leave the level? You can just do PlayMusic again on the second level...
I didn't quite understand your problem. Lol
Done that .. my problem is.. when i exit a level.. for example.. i want to do a different Custom Story.. the music just keeps playing.. so have to know how i can stop it..


(This post was last modified: 03-11-2012, 04:53 PM by wretic91.)
03-11-2012, 04:53 PM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#4
RE: Music Loops

void OnLeave()
{
StopMusic(4, 0);
}



03-12-2012, 08:13 PM
Find




Users browsing this thread: 3 Guest(s)