Thread: Crossfade
View Single Post
  #4  
Old 10-31-2011, 11:31 PM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by Elk View Post
If I have an URL loopplayed on an overworld, and I want it to crossfade into the Inn theme once I enter the Inn, is there a possability to do so with a script? Please let me know!
Could do something like this when entering a new level.
PHP Code:
//#CLIENTSIDE
function onPlayerEnters() {
  for(
temp.1temp.0temp.-= .1) {
    
setmusicvolume(temp.itemp.i);
    
sleep(.05);
  }
  
stopmidi();
  
playlooped("newsong");

Then could always use do another small loop to increase the volume of the second song. Not exactly crossfade, but, close.
__________________

Reply With Quote