
01-30-2006, 05:36 PM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
to avoid lag serverside?
|
I'm thinking of ways I could modify my movement system for serverside use.
I have a moveObj function, that right now on the clientside uses recursion to complete it's movements for movements greater than it's width+15/16 and it's height+15/16. This will be using the move function. My question is, would it be better to pre-iterate through the entire movement and then use move, or would it be better to use the movementFinished event handler in recursion? Right now I'm leaning towards the former because I'd probably want to reserve the onMovementFinished event for the NPC using the class. |
|
|
|