Working BGM system that music can be changed at any time?

Hi there! So I've been trying to get BGM in my gamebook. The HTML5 audio element, for whatever reason, does not work. (I use @clear, I know it causes problems with some stuff, so I'm not sure)

I tried a few javascript solutions and only could get sound to play, but not change when desired.

Has anyone accomplished this? Examples would be super appreciated!



Does this help?

This topic is now closed. Topics are closed after 60 days of inactivity.