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!


K.V.

Hello.

Does this help?
https://textadventures.co.uk/forum/squiffy/topic/_4qhxoi370ijxy1zvpcwxg/adding-sound#4e9591f3-8bd5-4eb6-8981-a55706f93cb3


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

Support

Forums