How do I check if the game looses focus?

Get help using Construct 2

Post » Wed Jul 01, 2015 12:35 pm

I'd like do exit to in-game menu when my NW game looses focus.
I used browser "On suspended" and "On resumed" conditions and it worked in the preview but after exporting the game this isn't triggered.

Is there possibility to check if the game looses focus (that works on exported NW game)?
B
55
S
14
G
10
Posts: 287
Reputation: 7,677

Post » Wed Jul 01, 2015 3:27 pm

I have a feeling that this is some sort of bug - I've been doing battle with it as well. In fact, I thought I had it fixed until you posted that these triggers don't work on export!! I've submitted a bug report about these triggers not always firing here.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,249
Reputation: 46,472


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests