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

AveryRe
20 Nov 2018, 15:47

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.
01 Dec 2018, 22:48

Hello.

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