Multiplayer games

VeGaS

  • Posts: 14
Is it possible to create multiplayer games in StencylWorks? (Internet, LAN...)

coleislazy

  • *
  • Posts: 2607
Yes, but it is not easy to do. You could probably use any method you normally would in AS3 (which means lots of code).

VeGaS

  • Posts: 14
Hmm ... is there any tutorials on creating multiplayer games in StencylWorks?

coleislazy

  • *
  • Posts: 2607
No, and as far as I know, no one has created a multiplayer game with SW yet. I think there is one in development now, though.

VeGaS

  • Posts: 14

niccosw

  • Posts: 91
It is possible to make multiplayer games, but it requires coding both on the Stencyl client and server-side. Here is a Stencylpedia article on connecting to a socket server:

http://www.stencyl.com/help/viewArticle/83

Stencyl already has the capability to connect asynchronously with web servers. Check out the GAME:WEB blocks in StencylWorks. You can read about Herby's JSON pack here:

http://community.stencyl.com/index.php/topic,1127.0.html

Xazo-Tak

  • Posts: 28
Since I don't think I could run a server, is it possible to have the server hosts being everyone who is playing at the time? That might cause complaints unless I add a warning though.

niccosw

  • Posts: 91
If you don't feel comfortable running a server on your own machine even for testing then you probably shouldn't be making a multiplayer game. Someone has to host the server, even in LAN games. P2P multiplayer is harder than server based which is hard enough.

If you mean you can't host a server because you are on campus, then you will need a remote server which will cost some money.

Xazo-Tak

  • Posts: 28
Yeah, I don't think I could afford a good server.

P2P multiplayer support in stencyl would solve a lot of problems, since everyone's asking who will be hosting and whether it's paid or not if multiplayer is added. Hmm... TO THE SUGGESTION BOX!

niccosw

  • Posts: 91
I shouldn't have said that LAN games require a server. That was dumb. They require a host.

I'm going to begin work on a socket server multiplayer kit for the community to use soon. If anyone with programming ability is interested, they can send me a private message. I'll be actively recruiting next week.