Quote:
Originally Posted by DustyPorViva
I have tried and tried and tried move(), while not 'jumpy' in the same sense, it flies all over the place at times when there is any delay on the serverside; since it will continue to move in the last known direction it was heading, then suddenly update and appear at it's more updated location. If anyone can give me an example script of using move() correctly serverside, I'd appreciate it!
|
You should calculate it's next move before it even starts moving, that way once it finishes the move function it doesn't have to calculate it and have those weird bugs. Calculate it based on the destination x and y, and where you want it to go from there, then do the first move function, repeat, and do the other move function, repeat, etc. Basically all of the calculations should be delayed by 1 move function.