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 ?
Image



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
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

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
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

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?
Image



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
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

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
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

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...
Image



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
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

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
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

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?
Image



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
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

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
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

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?
Image



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
55
S
17
G
90
Posts: 1,112
Reputation: 59,151

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....
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
B
73
S
19
G
66
Posts: 2,198
Reputation: 42,193

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Malhog, Ryan Kocourek and 11 guests