Moving the avatar
There are two ways to tell the avatar to walk. Either input by pressing the arrows keys or clicking on the destination point by mouse.
Which method is better? We need to consider both the game play and the network synchronization.
The game play of the virtual world is our first consideration. A virtual world with fighting theme requires players to stick on the keyboard to walk and create key combination attack. On the other hand, our virtual world focuses on social interaction so that mouse input will be the main use.
Movement synchronization
When moving the avatars by keyboard, we may keep sending the "move right" command until the right arrow key is released. In this case, the client broadcasts many same messages to synchronize ...
Get Flash Multiplayer Virtual Worlds now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.