Chapter 5. Chat

CHATTING IS PRESENT in all multiplayer games and virtual worlds. It allows users to send messages for others to read immediately. In this way, users have conversations to get to know each other, trash-talk, or coordinate strategies in team-based games.

In this chapter, we look at the various ways users chat, and how those ways work with ElectroServer. We’ll discuss some new room concepts, and then look at the code used to build a simple chat room.

Overview

When it comes to programming a chat, there are several concepts that you should become familiar with. These concepts govern where you chat, who can see your chat messages, and how those messages are created in the first place. In this section, we’ll present those basic concepts, ...

Get ActionScript for Multiplayer Games and 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.