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
Few questions about putting music in my maps
finScript Offline
Member

Posts: 59
Threads: 35
Joined: Jan 2012
Reputation: 0
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
finScript Offline
Member

Posts: 59
Threads: 35
Joined: Jan 2012
Reputation: 0
#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
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#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
Website Find
Ninami Offline
Member

Posts: 59
Threads: 6
Joined: Feb 2012
Reputation: 2
#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
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#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




Users browsing this thread: 1 Guest(s)