Hi everyone! I have a train image that shoots an animation and synchronized audio. I don’t get the following script to work to make my audio pause when the train image is not visible and put on play when it is.
const BIENVENIDA1_COMPLETOOK_wav = parent;
symbol.nodes.Bienvenida.on(“seen”, () => {
// Runs when seen occurs on the Bienvenida node
symbol.nodes.BIENVENIDA1_COMPLETOOK_wav.start;
symbol.nodes.Bienvenida.on(“notseen”, () => {
// Runs when notseen occurs on the Bienvenida node
symbol.nodes.BIENVENIDA1_COMPLETOOK_wav.pause;
});
});
I’m putting this script inside the audio file BIENVENIDA1_COMPLETOOK_wav.
I leave the project in case someone can take a few minutes to help me, I will be very grateful! PRINCIPITO BIENVENIDA 1.zpp (19.5 MB)