# How would I create a multiplayer game owning a server?

I'm using gamemaker studio 2 to create an RPG, at the moment it's only single player but I would ideally like to make it multiplayer if possible.

I've done a bit of research but all the information seems to be more for using your PC like a server whereas I own an actually server that I'd like to use for it.

I have a website that the game is embedded on, the files for it are all stored on my server along with my website's files.

I want to make it so that the game is constantly running 24/7 and can handle quite a few people playing at once, I imagine that this may be difficult to achieve although not impossible.

I feel I have the resources available to make this happen but I'm not sure on the steps I'd take to get to where I want to be.

If there's any more information that would help, I will update my question for you.

• You can probably take a look at "socket programming" to connect a server and multiple clients together. I have no experience with Gamemaker so I can't suggest something more relevant. After a quick online search of "Gamemaker multiplayer tutorial" I found some results, did you take a look at them? – TomTsagk Feb 19 at 11:21
• Tom, thanks for your response. I did have a look at some of the online tutorials but they seem to be only using your PC as a server and having the 'server' running only when you have the game running on your PC and only have a few people playing at once. I want to take this a step further and have it running continuously on my own server with an unlimited number of players. – Ember Feb 19 at 11:32
• Your server is a PC, you can make a "headless" version of your game, that doesn't have graphics, but calculates the state of the game, and have people connect to it. It's better to start with something small while you learn and move one step at a time. Also it's impossible to support "unlimited" number of players, especially with no experience in network programming. – TomTsagk Feb 19 at 11:34
• No, sorry I think I worded that badly, I own a dedicated server. – Ember Feb 19 at 11:38
• The Game Maker environment isn't suited for creating high performance servers and should not be used that way. You would want to create the server in some other general purpose language like Java, C# or whatever else you like. You should of course use the "Game Maker Language" networking-API in your client. It's a thin but easy to use abstraction of UDP/TCP socket networking. – VaTTeRGeR Feb 21 at 22:07