O'Reilly logo

GameMaker Cookbook by Brandon Gardiner

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

Connecting a client to a server

In order to play a game online, you must first connect to other players. In the early days of computer gaming, this was done with a direct connection from one computer to another. These days, it is far more common for all players involved to connect to a server in order to enjoy multiplayer games. Let's take a look at how to create a server/client relationship using GameMaker.

Getting ready

Since we're going to learn how to connect a client to a server, we're going to need both a client and server. For this purpose, you'll need two different projects open at one time: network_test_server.gmx and network_test_client.gmx, each with a single room. You'll need to create specific objects during this tutorial instead of ...

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