Local Multiplayer on Mobile (without internet)

Discussion and feedback on Construct 2

Post » Sat Aug 06, 2016 7:52 am

Hi,

I'm trying to create a local/couch multiplayer game for mobile devices much like Spaceteam (which is a great game and you should play if you haven't already). It has a very convenient feature where players can connect to each other either via Bluetooth or Wifi using a peer to peer connection. The best part is that it does this even if there is no internet.

From what I have read, Construct can only make a multiplayer connection using its signalling server which requires the internet. The other option is to buy the signalling server and install it on a LAN but the server only runs on computer devices and not on mobile. Also if it did, it is very unlikely that I can ship every game with its own signalling server.

I say this because I want the game to be accessible with or without the internet, using Wifi or Bluetooth.

Is this possible with Construct in any way? Has someone tried something similar?
B
26
S
1
Posts: 59
Reputation: 1,100

Post » Sat Aug 06, 2016 8:34 am

whoisda wrote:Hi,

I'm trying to create a local/couch multiplayer game for mobile devices much like Spaceteam (which is a great game and you should play if you haven't already). It has a very convenient feature where players can connect to each other either via Bluetooth or Wifi using a peer to peer connection. The best part is that it does this even if there is no internet.

From what I have read, Construct can only make a multiplayer connection using its signalling server which requires the internet. The other option is to buy the signalling server and install it on a LAN but the server only runs on computer devices and not on mobile. Also if it did, it is very unlikely that I can ship every game with its own signalling server.

I say this because I want the game to be accessible with or without the internet, using Wifi or Bluetooth.

Is this possible with Construct in any way? Has someone tried something similar?

you must use websocket and nodejs
but your clients must input the host ip in local network
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Sat Aug 06, 2016 11:50 am

Thanks for the reply Mahdi71.

Can I get some more info on this? Is there an example or tutorial for something similar that I can use to learn the basics and recreate that in C2?
B
26
S
1
Posts: 59
Reputation: 1,100

Post » Sat Aug 06, 2016 5:25 pm

whoisda wrote:Thanks for the reply Mahdi71.

Can I get some more info on this? Is there an example or tutorial for something similar that I can use to learn the basics and recreate that in C2?


I also want to know the same. some help? plz
Image
B
44
S
13
G
2
Posts: 23
Reputation: 3,889

Post » Sat Aug 06, 2016 6:39 pm

I did some reading on WebSocket plugin (https://www.scirra.com/manual/153/websocket). It says "Construct 2 does not provide a server nor can the WebSocket plugin be used to make a server. If you don't already have a WebSocket server set up, you will need to create one yourself using a technology like node.js with WebSocket support. This can be a significant undertaking and require server-side programming knowledge."

Would love to hear if someone has any previous experience on this.
B
26
S
1
Posts: 59
Reputation: 1,100

Post » Sun Aug 07, 2016 12:52 pm

hi
if you want me to answer please use @ like ( @whoisda ) or replay me.
for websocket you have to know javascript wich is easy
here is some tuts:
https://www.youtube.com/watch?v=hv9KdklXZqE
https://www.youtube.com/watch?v=FZep88ZOGOU
https://www.youtube.com/watch?v=lhnEudkm3T4
https://www.youtube.com/watch?v=FZep88ZOGOU
_or you can search google for more ..
B
16
S
6
Posts: 243
Reputation: 1,755

Post » Sun Aug 07, 2016 1:38 pm

Thanks again @mahdi71, These tutorials are great.

I'll try to recreate this to learn some basics after that I'll try to see of there is any way I can create a server on mobile devices.

I still have to see how viable it will be since the official documentation says it only supports text message. Let's see. :)
B
26
S
1
Posts: 59
Reputation: 1,100

Post » Mon Aug 08, 2016 9:31 am

mahdi71 wrote:hi
if you want me to answer please use @ like ( @whoisda ) or replay me.
for websocket you have to know javascript wich is easy
here is some tuts:
https://www.youtube.com/watch?v=hv9KdklXZqE
https://www.youtube.com/watch?v=FZep88ZOGOU
https://www.youtube.com/watch?v=lhnEudkm3T4
https://www.youtube.com/watch?v=FZep88ZOGOU
_or you can search google for more ..

Thank you for sharing this.
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717


Return to Construct 2 General

Who is online

Users browsing this forum: Tokinsom and 8 guests