Asynchronous Multiplayer: Possible?

Discussion and feedback on Construct 2

Post » Thu Sep 19, 2013 3:38 pm

Just a simple question: Is asynchronous multiplayer (say 2 players against each other) possible right now?

Or is this a planned feature?

And if its possible, how would you go about doing it?
MOO
B
14
S
4
G
4
Posts: 53
Reputation: 3,862

Post » Thu Sep 19, 2013 3:53 pm

Yes, turn-based online multiplayer is possible in C2 using the websocket or Ajax object.   There are also a few 3rd party plugins for multiplayer, but I haven't done much experimentation with them. I created an online multiplayer card game using ajax requests, a php server, and a mySQL database. Here's the topic I posted about it. If you scroll to the bottom, there's an explanation of how the multiplayer works.zatyka2013-09-19 15:55:28
B
64
S
19
G
8
Posts: 341
Reputation: 12,185

Post » Thu Sep 19, 2013 3:54 pm

It's more a question of How, not If. Data is data it's up to the designer to implement the model of moving the data.

You can use AJAX PHP, Photon, Websocket... past that the rest of the implementation on how is in your hands.

B
90
S
18
G
9
Posts: 2,455
Reputation: 15,038

Post » Thu Sep 19, 2013 4:02 pm

[QUOTE=zatyka] Yes, turn-based online multiplayer is possible in C2 using the websocket or Ajax object.   There are also a few 3rd party plugins for multiplayer, but I haven't done much experimentation with them. I created an online multiplayer card game using ajax requests, a php server, and a mySQL database. Here's the topic I posted about it. If you scroll to the bottom, there's an explanation of how the multiplayer works.[/QUOTE]

This is exactly what I was looking for. I have a similar idea but bit more complex. Its going to be the most complex thing I have ever come up with. I am going to mock it up as a board game first to make sure it works, and then move to the video game world (possibly)
MOO
B
14
S
4
G
4
Posts: 53
Reputation: 3,862

Post » Fri Sep 20, 2013 12:58 am

It is , You could do it in C2 by saving a file to a cloud service where multiple people can access the same file , or something like that ... and have the same files , and access it , every ticks for the 2 players

1 tick , access and save , player one
2 tick , access and save , player two

I never tried it , and I don't know if it'll work , but yeah , it's just an idea
Whiteclaws2013-09-20 00:59:09
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,471


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests