[SOLVED] Sound is playing when the game window out of focus. How to fix it?

Hi guys! I need your help with sound. I made a video to show the problem. If you watch it with sound, you will hear the problem :slight_smile: The sound fx plays when the
game window is out of focus

1 Like

No idea :melting_face:
But I think there is a method for losing input focus
```
– tell the current game object (“.”) to release
`input focus.msg.post(“.”, “release_input_focus”)`
```
when cursor is out of window or something like that

I think it is possible to say, “Hey if the constant is TRUE then lose input focus” :grinning_face:

2 Likes

You can listen for a Window focus loss event and then disable sounds:

2 Likes

thanks!