Does Construct2 have a "blur" expression

Get help using Construct 2

Post » Fri Oct 26, 2012 7:16 pm

To reduce packages send, I want to implement this code into my server:

window.onblur = function()
{
    server.send(PLAYER_AFK, connection);
}

window.onfocus = function()
{
    server.send(PLAYER_NOT_AFK, connection);
}



But it would only work if Construct2 has Blur and Focus expressions.

I could not find them...Schoening2012-10-26 19:20:53
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Fri Oct 26, 2012 7:29 pm

I found this one topic:

http://www.scirra.com/forum/losing-focus_topic57094.html

I hope there is a different way, else I might as well start writing a plugin for it.
B
40
S
11
G
4
Posts: 665
Reputation: 8,403


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 21 guests