Is it possible to make a local multiplayer game on mobile?

Get help using Construct 2

Post » Tue Feb 07, 2017 2:27 pm

Is it possible to make a local multiplayer game on mobile using only wifi or hotspot without going online?
How do we get a signalling server for this @Ashley ?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Tue Feb 07, 2017 3:14 pm

You still need a signalling server for that. It can be running on the same LAN though. Otherwise there's no way for the clients to find each other.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Tue Feb 07, 2017 3:49 pm

Ashley wrote:You still need a signalling server for that. It can be running on the same LAN though. Otherwise there's no way for the clients to find each other.


Okay. But how do I integrate this (https://www.scirra.com/store/game-makin ... server-161) signalling server with Construct 2 or Construct 3? I am using this for mobile, so I don't know if this is ever done before.

Is there already a plugin for that or instructions provided in the readme.txt?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Tue Feb 07, 2017 5:28 pm

It comes with instructions, but if you're not familiar with running node.js servers, I'd probably advise against it. It's a lot easier to go online and connect to the Scirra-hosted one!
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Wed Feb 08, 2017 1:33 am

Ashley wrote:It comes with instructions, but if you're not familiar with running node.js servers, I'd probably advise against it. It's a lot easier to go online and connect to the Scirra-hosted one!


Wait... Do I have to set the signalling server up manually everytime I play the game on mobile?

What I meant is to have a multiplayer game only using lan or wifi connection on mobile without going online. Like a signalling server built-in to a game...
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Wed Feb 08, 2017 3:15 am

I think the simple answer would be no, not the way you are thinking.

But in practice, after you make the connection via signalling, if your hosts and peers are on the same local network, you are basically connected locally.
Mistakes were made.
B
52
S
26
G
111
Posts: 1,623
Reputation: 62,667

Post » Wed Feb 08, 2017 3:23 am

oosyrag wrote:I think the simple answer would be no, not the way you are thinking.

But in practice, after you make the connection via signalling, if your hosts and peers are on the same local network, you are basically connected locally.


But that still requires internet connection.

How come it can't be connected offline when it's basically the same thing but instead of an online signalling server and connecting peers and host online, we do it offline using LAN?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Wed Feb 08, 2017 3:25 am

You can, you'll just need a signalling server available on that particular LAN. It is not something particularly portable though.
Mistakes were made.
B
52
S
26
G
111
Posts: 1,623
Reputation: 62,667

Post » Wed Feb 08, 2017 3:28 am

oosyrag wrote:You can, you'll just need a signalling server available on that particular LAN. It is not something particularly portable though.


But that's not practical. I have seen many mobile apps do that portably and built-in the app. What am I missing here?
Is it a browser related problem or a browser missing feature?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Wed Feb 08, 2017 4:09 am

Does Apple now support the multiplayer webrtc? I have a similar project in stasis because webrtc wasn't supported and I didn't think I could demand everyone give up their iPhones....
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Next

Return to How do I....?

Who is online

Users browsing this forum: 25games, jatin1726, kiki4construct and 29 guests