Code for music clear function

What 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


[[Song 1 Play]]:
squiffy.ui.write('

[[stop audio]]

[[change src]]

[[clear]]

[[clear]]:
@clear


Hello.

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.


Log in to post a reply.

Support

Forums