Graphics Pausing but Audio Not

Get help using Construct 3!

Post » Wed Sep 13, 2017 6:49 pm

So I'm working on a rhythm game and it seems to be going alright but I found out something that ruins it all and thats when you hold click on the X button of the window, it freezes the entire game except for the audio which completely causes everything to be out of sync. Is there a way to disable the normal window buttons when the game is exported as a standalone executable so that there is no X button to click? Or is there a way to make the audio also stop while holding the mouse click down on the X?
B
6
S
2
G
2
Posts: 19
Reputation: 1,663

Post » Wed Sep 13, 2017 6:56 pm

Audio >> Properties >> Play in background >> No

is that it???
Howdy, I'm HenryPK! I love helping people and making games... Hope we can be friends. (Also check my game: Blue)
B
10
S
2
G
1
Posts: 60
Reputation: 1,233

Post » Wed Sep 13, 2017 7:03 pm

HenryPK wrote:Audio >> Properties >> Play in background >> No

is that it???

I checked that and it's already turned off. It stops playing when minimized but while holding the X button down, it continues while the rest of the game freezes
B
6
S
2
G
2
Posts: 19
Reputation: 1,663

Post » Wed Sep 13, 2017 7:33 pm

I played around here, and the Browser plugin kinda seems to solve the problem.
you can make an fullscreen request on an 'On Touch' block (unfortunately or not, browsers block any fullscreen request that's not associated to an user input) so then you set the audio property Timescale Audio to On.
So then you make:

Browser | Is fullscreen
>> System | Set Time Scale to 1
//any more pausing effects you may want (I used opacity and a pausing icon)

System | Else
>> System | Set Time Scale to 0
//remove pause effects


You can only hold X when you aren't in fullscreen mode.
And since the game (and audio) pause when aren't in fullscreen, you can't pause something that's already paused.
Howdy, I'm HenryPK! I love helping people and making games... Hope we can be friends. (Also check my game: Blue)
B
10
S
2
G
1
Posts: 60
Reputation: 1,233


Return to How do I...?

Who is online

Users browsing this forum: 1pl1, Yahoo [Bot] and 1 guest