can someone tell me where my code is messed up here?
I want the two characters to blink randomly throughout all the scenes in the attachment. Initially, I ran the blink function on the first scene and hoped it would just continue throughout the remaining scenes. But that caused the second scene to restart itself.
So, then I tried running a function to clear the interval and added code to clear the timeouts each time the interval runs but that’s not solved it. When you click through from scene 2 to scene 3, the timeouts start again but the audio starts playing again because it appears that the scene restarts. This happens multiple times.
I’ve got a feeling I don’t know enough about how to use intervals and timeouts.
blinkingProblems.hype.zip (973.4 KB)