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

Implementing the item panel

Item panel is a place where players organize their items. The following graph shows how we composite the item panel in Flash. The panel consists of a close button and 19 item slots. The itemSlot0 and itemSlot1 represent both hands, and itemSlot2 represent the riding. Players can arrange items within slots. They can put riding item in the riding slot. Riding item is a special item that players can ride on for faster movement. We are going to query items from server-side and display them in this panel according to the position.

Implementing the item panel

Loading the item definition

Similar to the buildings in the previous chapter, we have a definition ...

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