JS Question

Does anyone know how to use the JavaScript block to make a custom boolean block that can detect if a sound is playing (this is to add to my extra blocks thing)

so,in javascript,nobody executes your code as they want,you have to hook up something called a event listener yourself.

Please do not just make a JS help topic.

You don't need to use JavaScript. Import and edit this block to get the library.
untitled script pic (11)
Instead of the normal "play sound [sound]," "play sound [sound] until done," and "stop all sounds" blocks, use the ones in this library so that the boolean works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.