• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - Code Audio keeps playing with debugger paused

Starfag

Member
Can anyone, please, help me figure out what can I do to solve this pickle? :3

Here's the deal: I'm making a rhythm game, but I've a huge problem: when I'm in the debugger and pause it, the song keeps playing! Is this a bug? Shouldn't the sound stop with the game? I tried setting this as code, but there isn't a function that says
Code:
if (debug_is_paused) {audio_stop_all();}
There is a function that says "debug_event(str)", but since it is not listed on the manual, I don't know what kind of string it wants or even if it fits my needs.

This is what I need: when the code hit a breakpoint, the sound stops with the game, so I can see the value of the variables. The ideal scenario is that the song follows the script in its execution, advancing milisseconds on each step.

Thank you in advance ^^
 
Top