The Mugen Fighters Guild
Help => M.U.G.E.N Development Help => Topic started by: Sheng Long on April 22, 2014, 07:29:26 am
-
Is there a condition, or trigger to determine if a specific sound is being played, or NOT being played in MUGEN? Whether it is determined via Group #, Sound #, or can it be determined via Channel #?
-
Pretty sure you cant.
Mugen is pretty limited on it's sound game.
As var as I know you get to use
StopSnd
SndPan
PlaySnd
and that's it.
One thing that I can think of, to "trick" it to know is put the sound on a different channel, and use a variable to keep track of it.
What ever state plays the sound would set the variable at the start. Then you'd have to set up a timer to reset the variable. It'd be kinda hard to guage the time too.
If you needed you could set up a stopsnd and which ever state stopped it would reset the variable.
IMO, this is something Elecbyte should work on immediately. Sound is what really brings the character to life.
-
Well, the reason I asked is because I was trying to "loop" a song/music playing that is built within a character. Instead of looping from the beginning of a song, trying to loop from the middle of a song. I had to split the music up into 2 parts though for it to work.
The only way I could do it is to use a LowPriority controller on a PlaySnd, and have it play on the same channel the beginning of the song was on.
Well, thanks anyway.