Broadcasting where you walked

We now can move the avatar locally. The next step is to tell all people in the same room to update your avatar on their screen. A most straightforward way is to tell the others your destination point and then they will calculate the path and move the avatar.

This method may work in development mode because we may have only two to four instances testing the virtual world. Imagine that there are 20 users in the room. Now a user walks a path and broadcasts the destination point. All 20 clients have calculated the path once; that's a total of 20 times. Next we have all 20 people walking at the same time. Twenty destination points are broadcasted and all 20 clients calculated 20 paths. That's a total of 400 times. Assume ...

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.