Requesting a tutorial (or preferably a demo) for online real time multiplayer


(Muhznit) #1

Specifically, DatagramSockets and crossdomain.xml. I specify DatagramSockets only because I hear they use UDP which, due to its speed, is a much better option than ordinary TCP sockets. I’ve already bumbled through several posts on Stack overflow to no avail and currently I’m winding up with something about Security Sandbox Violation error #2048 no matter what I do.

Basically, I’m entirely lost with this stuff. All I want is a simple client-server system where I can at least send messages using UDP.


(Jayden Beveridge) #2

Here’s a good tutorial for AS3, http://www.wildbunny.co.uk/blog/2012/10/09/how-to-make-a-multi-player-game-part-1/ I personally haven’t followed it through and completed it but this is probably the best thing out there other than the Player.IO ones where they use their server-side stuff to explain things. Hope any of this helps you!


(Muhznit) #3

Paul’s was the first one I tried, but unfortunately, not only does it use TCP Sockets, but it skips over several details that go into making a full-fledged client/server, leaving you to fill in the blanks and flail wildly in an attempt to troubleshoot it. It doesn’t really help matters that the cost of the source code is equivalent to my cost in gas for the next two weeks.