Hi Stefano,
Is it possible to disconnect a player from the game via logic.js? Or can it only be done on the player.js?
I have currently been trying to disconnect a player on the player.js side. The issue I am having is that at the end of a step (i.e., on node.done()), I check in logic.js if conditions exist, and if so I send a message to the player to "disconnect". On the player.js I listen for that message, and disconnect them via node.socket.disconnect(). However, before the player is actually disconnected, the next step init's thinking the player is still connected. How could I ensure that the next step doesn't begin until after disconnecting the player?
Thanks,
Drew