[UPDATE - April 15th 2012]
I'm no longer providing support for this Kit. I encourage Stencyl users who have an interest in it to stay in contact with each other on this thread and share any changes and modifications they make. It's open-source, so feel free to copy / paste / modify any code that I worked on. It's yours, not mine.For the past several weeks I've been working on developing a multiplayer version of the RPG Town and Dialog Kit using an Electrotank socket server. I've gotten it to the point where it has basic functionality and have decided to release it. Due to the heavy dependencies in this Kit, I will not be uploading it to the Forge. You can download it here as a zip file instead.
Here is a video demonstrating the Kit in action:
http://youtu.be/O8Ll61YI0FoWhat the Electrotank Kit can do at this point:*
Create a LogIn Screen – Players can type in their user name. There is no password or authentication yet.
*
Select an Actor – The available actors are displayed. More can be added easily to the Actor Selector scene by attaching an actor with only the new CharacterSelector behavior. It can be modified in Design View to keep track of game stats.
*
Grid Movement – Players can use grid movement behavior that updates their location for all players to see. It tries to reduce bandwidth by only communicating when the movement key is pressed down and released, instead of constant updates. It also does error checking each time the player comes to a stop in case they have missed their target.
*
Text Chat – Players can hit ENTER, type a message and hit ENTER again and it will be displayed above their actor. There is an error right now that keeps the message stationary and may keep it permanently if the speaker leave the room before it is removed.
*
Other Players – Other players appear and disappear as they log in out of the server and enter and exit the scene.
To get this running a developer needs to:*
Install ES5 on their test machine or on a server – There are some YouTube tutorials on how to do this and you can get help at Electrotank's site.
*
Use the ES5 SWC files – This is included with the zip file below.
*
Enter the Host URL in the Electrotank LogIn behavior – The behavior's default is set to the default ES5 instillation on a local test machine. You won't have to touch this during local testing.
*
Run the server as a service if on a local test machine