'Why is my sprite's costume not changing in scratch when the statement of a function becomes true?

Why is my sprite's costume not changing in scratch when the statement of a function becomes true?

I have the following code:

Scratch code

For some reason it doesn't change the costume.



Solution 1:[1]

Change the block "play sound ...WAV FINAL until done" to: start sound ...WAV FINAL" What's happening is that the program waits until the sound is done playing to then check to change the costume

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VaderNinja