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...