Multiplayer game with a permanent server ?

Get help using Construct 2

Post » Tue Aug 02, 2016 7:25 pm

I would like to create a multiplayer mini golf game.
The idea is having an online, permanent server on which players connect, and they land in a global chat room. So, ALL players are client.
From here, any of these players can create a private game on which other players can connect. Then desired, the private game host launches a game. The "host" player shouldn't be a real host, but a client too as every player action should be calculated from my server.

I've made a very first prototype of my multiplayer mini golf when I was learning how to make a multiplayer game with Construct, but I don't know how to create a public server on wich every player connect to, instead of having a "local" server instance created when the first player connects to my game.
I'm not sure if a player which creates a private game should be a real "server", which locally calculates its own actions as well as the other player actions in the same game (asynchronous multiplayer, and that's what I did on my prototype), or if all actions should be calculated by my online, permanent server. Which seem, on the paper, simpler.
The thing I didn't like in my asynchronous prototype was that I had to have different events for when a player does an action, according to the player type (server or client). Like "if host … else …".
You can have a look here : ... lf-07.capx (start two instances as this prototype need this exact number to work)

Any idea or suggestion ? I don't mind using third-party plugins as long as they're reliable.
Posts: 450
Reputation: 4,276

Post » Mon Aug 08, 2016 1:44 pm

There are lots of options for third party servers, but you need to learn server-side coding to make use of them.

There are a few non-programming answers like, but I know how to program in Java, so this was never an issue for me.
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
Posts: 1,418
Reputation: 4,830

Return to How do I....?

Who is online

Users browsing this forum: divsyntax, pmerineau and 11 guests