Multiplayer

0 favourites
  • 12 posts
From the Asset Store
The official Scirra Multiplayer Signalling Server for helping peers find and connect to each other
  • Hi guys,

    first, sry. my very bad English... :)

    no my question. I would like to now how to do a kind of a multiplayer game? like "Battleship" or something like this. what will be best way to do? Maybe whit "Ajax, mysql, php" or is there also a easier way to do?

    thanks for all responses!

  • Construct isn't equipped to do online multiplayer games. Though it can communicate with a server it doesn't do so in a way that can run a multiplayer game. You *can* create a multiplayer game where the players are at using the same computer, but that's it.

  • Online turn-based multiplayer is very much possible. Only games requiring fast, realtimy response-times are out our reach :)

  • This somewhat false, although it takes a lot of backend work to do it right, and it's not for fast paced action games. I'm working on rewriting an online game I had running a couple of years ago in C2, and it's working great.

    Games that can live with Ajax calls as a primary means of playing can be done very easy in C2. Your C2 app becomes a UI container while the backend does all the work. It checks for updates from the server every x seconds, and when you click a button it sends that to the server for processing.

    A battleship style game could be done in this way...but again it's beyond the scope of C2 itself to pull this off, as most of the game itself is being computed on the server in whatever language you're using there.

  • Well, I apologize for providing incomplete/incorrect information, I guess I don't know everything... yet! =)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • well thanks for the informations....

    so there is also now way to "wait" for an update, like that the PHP script or what so ever is "sending" an information to the client that there is an data update. and when this signal is coming you make a ajax request?

    more easy...

    (my game is waiting)

    (the other make a move or something, this update my data on the server)

    (the server is sending an "ping" to my game)

    (no my game check for this new data update)

    so you don't have to make every x second a request!

    is there a way to do something like this?

    i hope you where understanding everything ;)

  • You can ping with ajax, and look for a serverside change. Also look at websockets (only in beta atm) as this is more tailored for this sort of thing.

    What's the future of realtime multiplayer in HTML5? Anyone know what tech developments to keep an eye open for?

  • thehen yes i can "ping" whit ajax. but this means i will have to make a request to the server. it will be nice to have a way that the server is sending the ping to the client, so i don't have every x seconds a request.

  • Ajax is client initiated. Websockets would be the way to go, but that's another can of worms altogether. I'd suggest finding some good tutorials on Websockets before deciding to go down that route.

  • hm ok, thanks. i just read a bit on Wikipedia :)

    Well is there a possibility to use websockets in construct 2? or maybe a extension or something like this?

    anyway thanks for all! :)

  • r116 introduced websockets. Cheack out release notes for more info.

  • ah ok nice thing! :) so when there will be a stable release of that version? I hope soon! <img src="smileys/smiley20.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)