Original Post
Hi, I'm making an MMORPG server, and right now, I'm thinking about how I should keep track of each character's position. By that, I don't mean how to store their data. I actually mean the following: Let's say if one character is in position (50,50). Now, the client side (that player) clicks on (45,45) on the map. The client side will, of course, do the pathfinding, and will go by the following track (assuming no objects blocking the way) 50,50 start 49,49 48,48 47,47 46,46 45,45 arrived but now, one thing I want to question is. Does the server first receive the message 49,49 from the client, and then will Check if 49,49 is beside 50,50 (since character is going from 50,50 to 49,49), and then allow him? Then 48,48, then 47,47, and so on? Will this be a lot of workload for the server if it has to check every single coordinate? Or should the client do the pathfinding first, send the whole path to the server, and the server check if the path is ok? If it is okay, and the client starts moving step by step, and let's say now the client is in 48,48, but some guy logged in at 47,47 suddenly... then how should the server respond? because the path needs to be changed... what's the profession to do this, may i ask?