Open Novaenia opened 1 month ago
When you say more than once, do you mean twice, three times, every frame? It's hard for me to test this particular issue myself because my computer is a potato.
it sounds like a new instance of the pop sound is being made every frame that a bubble's half-popped sprite is visible
This most likely happens because playSound
is called in a mixin to a rendering method which runs every frame.
This condition is probably true during multiple frames so the sound plays once for each frame. You need to somehow make sure that the sound only plays in the first frame when the condition is true and not in the frames that come after.
steps to reproduce: