F5 is running the game and cannot turn off the sound.

QQ_1762496882227

  1. When I’m making games, I use a secondary screen to place the “game workspace.” After pressing F5 to run, the “Suspend” button in the upper left corner can pause the game. This way, I can continue working on the main screen while being able to observe the game window on the secondary screen at any time.

  2. However, what troubles me a lot is that the BGM running in the game cannot be controlled to turn off. To stop the music, I have to close the entire workspace, which is very inconvenient.

  3. Is there any way to pause the game without closing the game workspace and turn off the music? Or can we add a sound control function to the button to manually turn off the music?

Solution:

(1) It’s amazing. Following my friend’s advice, I created a scene for playing BGM nodes and set it as a “global node”.

(2) When testing again by pressing F5, simply click “suspend” to pause the game, and BGM will also close.

(3) Although I don’t know exactly what changed, it effectively solved my problem.