Yet another Multiplayer Question

Get help using Construct 2

Post » Wed Jul 18, 2012 5:00 pm

I've seen a lot of topics on multiplayer but what I want to do seems like it would be more simple.

I would like to make a facebook game with turn based interaction via just sending a simple string back and forth. It seems like something in facebook's messaging or chat could be leveraged to accomplish this or maybe theres' a feature in the fbook api I could use for this.

... or Kongregate?

Any ideas?
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
38
S
9
G
3
Posts: 149
Reputation: 5,986

Post » Wed Jul 18, 2012 5:05 pm

I want it so much too. But I really don't know how to do.

I think in use some variables with all the information of the turn and update a data bank, but I don't know if this will work.
B
203
S
37
G
13
Posts: 136
Reputation: 29,523

Post » Wed Jul 18, 2012 5:19 pm

Could this be done with a database, php and ajax?

Something like (thinking out loud here).

Database Table:
Player 1
Player 2
PlayersTurn
GameString

In your game.

Player 1 playing his game.
Game checks database for PlayersTurn data. If 1, game continues.
Player 1 plays.
Turn over, send data to database setting PlayerTurn = 2 and GameString to whatever data you need to send for the other player.

I'd be happy to do a tutorial on it if you think it would be useful.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Wed Jul 18, 2012 10:58 pm

A tutorial would be great plz!!
B
15
S
4
G
4
Posts: 28
Reputation: 3,732

Post » Thu Jul 19, 2012 8:56 pm

YES. I second that. I'd love love love to have a tutorial that would allow that.

Still there's already a chat client built into FaceBook and already a message system in every social media thing. Your game could tweet everyones moves with a single twitter account...
Follow my CZero development on twitter https://twitter.com/CaptainZeroGame
B
38
S
9
G
3
Posts: 149
Reputation: 5,986


Return to How do I....?

Who is online

Users browsing this forum: HugeCube, imnotspecial, tomi71, totoe and 20 guests