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

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Few questions about putting music in my maps
Author Message
finScript Offline
Member

Posts: 52
Joined: Jan 2012
Reputation: 0
Post: #1
Few questions about putting music in my maps
I put music in my map, but it wont stop, if Grunt or Brute comes around. It won't stop, if I exit the map to the main menu, but only if I close the whole game. What should I do?

01-28-2012 11:03 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,235
Joined: Jul 2011
Reputation: 215
Post: #2
RE: Few questions about putting music in my maps
How did you put music in your map?

Tutorials: From Noob to Pro
01-28-2012 06:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
finScript Offline
Member

Posts: 52
Joined: Jan 2012
Reputation: 0
Post: #3
RE: Few questions about putting music in my maps
void OnStart()
{
PlayMusic("10_amb.ogg", true, 100, 3, 0, false);
}

(This post was last modified: 01-29-2012 11:36 AM by finScript.)
01-29-2012 11:35 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,235
Joined: Jul 2011
Reputation: 215
Post: #4
RE: Few questions about putting music in my maps
I was unable to duplicate your issue on my system.

Tutorials: From Noob to Pro
01-29-2012 11:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Ninami Offline
Member

Posts: 59
Joined: Feb 2012
Reputation: 2
Post: #5
RE: Few questions about putting music in my maps
If you still have this problem, you should change the "0" to "1".

alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc


So if it's 0 then this music has the highest priority in the game, which means no other music will play.
Or change it to even lower priority than 1, maybe 4-5 just to be sure that "Background" music has lowest priority, in case a monster spawn for example.
(This post was last modified: 02-06-2012 05:41 AM by Ninami.)
02-06-2012 05:40 AM
Find all posts by this user Quote this message in a reply
Elven Offline
Posting Freak

Posts: 868
Joined: Aug 2011
Reputation: 26
Post: #6
RE: Few questions about putting music in my maps
Actually with music it is only thing what is wrong in wiki.

0 is highest priority with sounds. It only applies to sound.

In music it is opposite, bigger the number, bigger priority it has Smile

The Interrogation
Chapter 1

My tutorials
02-06-2012 08:43 AM
Find all posts by this user Quote this message in a reply
Post Reply 




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