Saving the position for next time

In a virtual world that has a big map, we need to save the current position of the avatar so that we can resume the position next time when we log in again. We can access the database by using server-side extension.

Creating an avatar database table

There are several ways to perform the MySQL tasks. One easy way is to use the PhpMyAdmin, which is a web-based MySQL admin panel provided by the web server bundles.

Windows users can launch the PhpMyAdmin from the taskbar Wamp2 | phpMyAdmin.

For Mac OSX:

  1. Launch MAMP.
  2. Go to http://localhost/MAMP in the web browser.
  3. Click on the PhpMyAdmin link.

Linux users can go to http://localhost/path_to_phpMyAdmin in the web browser.

It is optional to create a database before creating ...

Get Flash Multiplayer Virtual Worlds now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.