© Yadu Rajiv 2018
Yadu RajivDeveloping Turn-Based Multiplayer Gameshttps://doi.org/10.1007/978-1-4842-3861-5_5

5. Talking to Your Server

Yadu Rajiv1 
(1)
Bangalore, Karnataka, India
 

In this chapter, we will focus on reading the news from our server using GameMaker Studio’s network capabilities. Until now, we have been using a browser to get our information, but now, we will create a new project in GameMaker and try to read the news from inside our game.

Starting the Project

Start by creating a new project and a new object called objNewsReader. Once the news reader object is created, we will wait for 1 second before trying to connect to the server to read the news. We do so in order to let GameMaker start the game properly. Once you have created the ...

Get Developing Turn-Based Multiplayer Games: with GameMaker Studio 2 and NodeJS now with O’Reilly online learning.

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