[Solved]Play Sound on State Change

I would like to play a sound on a state change. For example, if someone is standing in a laundry mat, I would like to play the sound of dryers running in the background. The sound plays, but it is a very fast buzzing sound instead of the actually sound of dryers. I believe the way the update() function checks current state is causing the sound to continually start over. How can I trigger the sound to play within the limitations of the current system? I will just tag @Joao_Dalvi but anyone with expertise or ideas, I would love to hear them.

Hey King, you can change it when the player press the key to change the state, make it change the music too

1 Like

Perfect! Thanks!

1 Like

Did it worked?

1 Like

Perfectly. @Joao_Dalvi

1 Like

Privacy & Terms