At first I thought I solved but today when I tried it with rooms with different musics it didn't work. I tampered with audiochannel functions so I found things that would work. I put them all in a "if" so that it works now!
So, when I want the "aBlueStone_Cave" music to play but if it was playing before, not to restart; I write this in the room_load function:
Code: ags
Just write what music you want instead of BlueStone_Cave and paste it in the room_load function. Or you can write another function for it, which won't be hard.
So, when I want the "aBlueStone_Cave" music to play but if it was playing before, not to restart; I write this in the room_load function:
if(music==null || !music.IsPlaying || music.PlayingClip != aBlueStone_Cave){
music=aBlueStone_Cave.Play();}
Just write what music you want instead of BlueStone_Cave and paste it in the room_load function. Or you can write another function for it, which won't be hard.