Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Music Loops
Author Message
wretic91 Offline
Junior Member

Posts: 19
Joined: Jan 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Mehis Offline
Member

Posts: 163
Joined: Sep 2011
Reputation: 3
Post: #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 all posts by this user Quote this message in a reply
wretic91 Offline
Junior Member

Posts: 19
Joined: Jan 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
JMFStorm Offline
Member

Posts: 205
Joined: Aug 2011
Reputation: 28
Post: #4
RE: Music Loops
void OnLeave()
{
StopMusic(4, 0);
}

03-12-2012 08:13 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)