Code for music clear function
LA-Laker
23 Aug 2019, 22:17What is the code for the music to continue after clearing in this format?
[[Song 1 Play]]:
squiffy.ui.write('
[[stop audio]]
[[change src]]
[[clear]]
[[clear]]:
@clear
LA-Laker
23 Aug 2019, 22:18[[Song 1 Play]]:
squiffy.ui.write('
[[stop audio]]
[[change src]]
[[clear]]
[[clear]]:
@clear
Richard Headkid
23 Aug 2019, 23:43Hello.
When you clear, you erase the HTML audio element.
I think you could use JS to move the HTML audio element outside of the game's displayed element before clearing to pull this off.
PS
You'd want to move the audio element from "#squiffy-container" to the HTML document's main body. So, you could try this JS code (remember, it requires 4 spaces before the text):
jQuery ("audio").insertBefore("#squiffy-container");
IMPORTANT NOTE:
I can't test any of this at the moment. This all theoretical.