Stop audio when player unfocus

Get help using Construct 2

Post » Thu Apr 24, 2014 7:00 pm

Hey guys,

I am trying to stop audio when player unfocus but couldn't find a solution. When I check the "pause on unfocus" option, It just works when I preview the game on c2. But after I export the game, this option doesn't work.

I really appreciateif someone help me about this issue.

Thank you.
Image
B
74
S
36
G
40
Posts: 438
Reputation: 25,807

Post » Thu Apr 24, 2014 11:46 pm

Yes "pause on unfocus" only works during preview.
What you mean exactly? You want to stop the audio when the game is not on focus?
The audio is automatically stop when the page / game is not on screen (minimized / unfocus).
Regardless the "focus on" is activated or not. (in my case)
B
13
S
4
G
1
Posts: 107
Reputation: 1,337

Post » Fri Apr 25, 2014 7:25 am

@DAG Thanks for your reply.In PC, audio stops when switching browser tabs but not windows or clicking on desktop. I want to stop audio in all unfocus situation like in C2 preview.
Image
B
74
S
36
G
40
Posts: 438
Reputation: 25,807

Post » Tue Apr 29, 2014 2:20 am

I have the same problem, I wonder if there's a solution to stop audio when switching window! If someone can help...
B
22
S
6
G
3
Posts: 59
Reputation: 4,288


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], John Cutter and 7 guests