O'Reilly logo

Flash Multiplayer Virtual Worlds by Makzan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required