>
> Every 0,05 seconds:>Send ("alldata," & "," & id & "," & x & "," & y)
>
For the server part or a client? I'm a little misunderstood.
If I will send some kind of data to the server, how can I split it
Your client. You gonna delete the pick, the "is moving?" condition and put a clear "every 0,05"... as I said.
The server side gonna be something like this:
socket.on("message", function (data) {
var new_data = data.split(',');
if (new_data[0] == 'alldata') {
id = new_data[1];
x = new_data[2];
y = new_data[3];
socket.broadcast.emit("message",
?'alldata,' + id + ',' + x + ',' + y);
}