Quote:
Originally Posted by Yen
move()'s movement is handled on the clientside.
When the move() time runs out, it updates the position on the serverside.
You'll have to trigger the server .05 or .1 seconds after it finishes moving, or schedule an event in the serverside to be called when it finishes moving.
|
1. Wouldn't that cause lag?
2. I'm using move() serverside, and double clicking action is clientside.
I tried this:
Serverside (when movement was done);
this.attr[ 20] = this.x;
this.attr[ 21] = this.y;
Clientside;
triggerAction( this.attr[ 20] + 1, this.attr[ 21] + 1,.....
But it did not work.