Knowing the current avatarposition on server-side
Knowing the current avatarposition on server-side
Hello, I'd like to know the current tile position of an avatar during his movement on server-side.
on server-side, when we use moveAvatar, it seems that the avatar finishes its current movement, before doing the new one. Which that if you move the avatar on a straight line, then ask him to move to a tile in the middle of this line, it first goes to the end of the line, then goes back to the tile in the middle.
On client side you can always do
and then
Code: Select all
openSpace.stopMyAvatar()Code: Select all
openSpace.moveMyAvatar( coords )TR
We further investigated the possibility of stopping the current avatar movement when the server-side moveAvatar method is called, instead of queuing the new path.
Unfortunately this is not possible, because the extension should know the current position of the avatar, in order to synchronize the starting position on all the clients.
Unfortunately this is not possible, because the extension should know the current position of the avatar, in order to synchronize the starting position on all the clients.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team