To debug the issue of repeatition of sound

Hi @learnfromsushmita,

The bug (the repeating sound) occurs because vdefiner stays a constant value while it is inside the loop. So, the sound will play 32 time per second for as long as that variable holds that value. You will need to immediately change the value of vdefiner in some way to get the sound to stop looping. Here is a post with some example solutions.

As for the sea animals, it looks like your sea animals are being generated randomly but they are not associated with a bubble animation BEFORE I click on them but there ARE associated with an animal animation AFTER I click on them. Can you associate a bubble animation to the animal BEFORE the mouse click in the same way you associated an animal animation after the mouse click?

FYI - I like the use of the modulus to time the animation - very clever.

Good luck as you continue to iterate the game!
~Michelle

1 Like