True Multiplayer - iOS and Android included.

Discussion and feedback on Construct 2

Post » Wed Jul 23, 2014 2:55 am

As I understand the current multiplayer plugin, it does not support mobile platforms. It's a very desirable feature. I saw a few posts about support for iOS multiplayer; not much of updates in there. Have anyone successfully implemented support for any of the third party sdks like photon (https://www.exitgames.com/en/Realtime) appwarp (http://appwarp.shephertz.com/) nextpeer (https://www.nextpeer.com) ? Will the official plugin be extended to use one of these ? thoughts please...
B
10
S
2
Posts: 21
Reputation: 665

Post » Wed Jul 23, 2014 6:27 am

Websocket plugin + Node.js +SockJS = http://imgur.com/xd3b5DK

That was my result. Not sure how well it would work on mobile, but theoretically as long as your mobile platform is compatible with the Construct 2 Websocket plugin, you should have no issues with cross-platform multiplayer.

Programming the server, on the other hand, is another task in and of itself. And, like I said, I used Node.js & SockJS for that.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Wed Jul 23, 2014 12:15 pm

Thanks much! But that sounds a lot of technical expertise - not in line with construct 2's drag and drop philosophy. The SDKs I mentioned, they have already set all these up, signaling, room picking etc like the multiplayer plugin, but including all the platforms. If there is a plugin to use any of those sdks, we could have cross platform multiplayer with all the platforms supported.

Can you share the server side code in the forum, like a sample others could make use of?
B
10
S
2
Posts: 21
Reputation: 665

Post » Wed Jul 23, 2014 12:54 pm

I got Android multiplayer working using the PeerJS plugin and compiling with XDK.

https://play.google.com/store/apps/deta ... smbf&hl=en
B
38
S
11
G
1
Posts: 203
Reputation: 4,473

Post » Wed Jul 23, 2014 1:38 pm

C2 offers access to the JavaScript SDK level to write whatever you want. Within platform limitations. It's not out side the scope of C2 for any singular or team of people to actually do some hard work.

However Google is your friend and anyone who spends just a we bit of time using some Google Fu can find this.
https://github.com/alongubkin/phonertc

I would suggest however over all to just study up on the principles of networking, layering and platform capabilities. C2 being an HTML/JS engine big Achilles heel is that wrapper(browser or psuedo browser) defines what C2 can and can't do.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Wed Jul 23, 2014 8:37 pm

maybe for ios .... safari dont support multiplayer Peer to Peer
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Fri Aug 01, 2014 1:30 pm

@jayderu looks promising.. Thanks! Just wondering why is it not included in the official plugin. I agree that anyone can do anything with google + tons of hours. But if someone has done it right once, everyone else should be able to just use it, right?
B
10
S
2
Posts: 21
Reputation: 665

Post » Sun Aug 03, 2014 10:03 am

The Multiplayer plugin does support mobile, so long as it supports WebRTC and the data connection can pass through peer-to-peer connections (some cell data services accidentally block it). Currently I think only Firefox and Chrome for Android support WebRTC though.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Sun Aug 03, 2014 11:59 am

i hope that there will be solution or trick to work with ios
i waste my time since 2 months and no results
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sun Aug 03, 2014 6:51 pm

@Ashley,
I have seen 'this plugin supports this platform already' a few times in forums. Will you please consider adding the list (Like the one you have in the homepage) on the top of each plugin? That is a worthy information for reference page, one would assume.

I have done a bit of research, but still have no clue if I can create an iOS multiplayer app with construct 2. Can you please tell me YES or NO to this?
B
10
S
2
Posts: 21
Reputation: 665

Next

Return to Construct 2 General

Who is online

Users browsing this forum: DjPoke, SB Interactive and 15 guests