Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: NavyNuke04 on Fri 16/01/2004 22:22:45

Title: Question with playing music
Post by: NavyNuke04 on Fri 16/01/2004 22:22:45
I want to loop a song on several different rooms. I don't want the music to stop and restart when the player enters the new rooms. Right now I've used this script:

SetSetMusicRepeat(1);
PlayMusic(2);

This works as long as the player stays in the room, but I want it to loop flawlessly to the adjacent room. What script command should I use to do that?
Title: Re:Question with playing music
Post by: Scorpiorus on Fri 16/01/2004 23:32:43
hmm, that should work. Don't you have Play music on room load somewhere by any chance?
Title: Re:Question with playing music
Post by: NavyNuke04 on Sat 17/01/2004 00:30:44
Ahah! I found the problem. I was looking back and noticed that I had used a 'StopMusic()' in the wrong spot. It's all fixed now. Thanks anyway!