» Mon Dec 20, 2010 9:27 am
Well try this. Make your music, lets say its 30 seconds long. Then make the middle 20 seconds be able to loop and sound good. And break the song into 3 sound files (so 10, 10, 10) Then when the boss fight starts, it plays the first 10 seconds, then advances a variable, causing it to loop the middle 10 seconds every 10 seconds, and once you defeat the boss it advances the variable, making it play the ending part after the middle loop finishes. This way it loops the music, but at most the music keeps going up to 10 seconds after the bosses death before winding down. Other than this, I dont think you can stop a 2d sound from playing mid sound at all. And, any ingame music will still play during it, it kinda svcks. I have a cutscene in my mod (entirely scripted, no player movement) and it plays some music, but the 'dungeon music' still plays in the backround too, so it would be your boss music over the other music. Unless you set there to be no music, which would sound the best during the fight.