- Main Menu
This is an old revision of the document!
Setting up your game for online multiplayer is considered an advanced topic, so it is recommended that you familiarize yourself with 001 Game Creator in general before attempting to implement this.
An online game generally consists of multiple instances of a game running at the same time, where one instance of the game is considered the server whom hosts the game, and the rest of the instances of the game are considered the clients whom connect to the server.
The following is an overview of the procedure of how online multiplayer games function in 001 Game Creator:
During the development of your game, 001 Game Creator offers an option for you to execute multiple instances of the same game by using the “Launch instances for network games” option within the testing options. When the value is 2 or higher, the first instance will be considered the server and the second instance will be considered the client. That is, “Is Server” use value will return true for the first instance and false for every other instance. However, if you simply execute the same game multiple times on the same computer once the game is built, each instance will be considered a client unless the game is built as a dedicated server.
Regardless of whether the game is launched as a client or server, any instance may either host a game or connect to one. This allows you to setup a game in a peer-to-peer (P2P) fashion using purely clients, simply by allowing the user to choose whether they would prefer to host the game or connect to another.