hey guys… I was wondering that if in a game like this one where 2 players play simultaneusly, would be posible to play from different computers at the same time… What i wanna do is to play against a someone else over the internet… so is there any way to play a game made solely using flash from different computers at the same time on the internet or on a lan?? if it’s posible please tell me how!!!
Its not possible solely using flash.
It is possible I you use a socket server. Socket connections are persistent, which let you stay connected to a server. A socket server is an application that’s always running. It can accept simultanious connections from multiple computers, and exchange information among them.
This is how most chats and multiplayer games are created in Flash.
For more info about this subjects, perhaps search this forum (if there are threads about this subject) or consult the help or a book.
That’s all I know about it, I’m planning to make a multiplayer game or chat pretty soon…
A socket server isn’t a component of Flash, though. He said using only Flash.
I thought Flash had a build-in XMLSocket class, or hasn’t it?
Ah yes, I guess it does.
"You’ll probably do need a socket server on your webserver. It’s usually written in Java, C, C++ or Visual Basic. But you can set up a socket server on your own personal computer, so that you can develop with it.
ElectroServer 3 is supported by any operating system that supports the Java Runtime Environment, it’s a Java-based socket server."
See Electrotank
I have this information from an Actionscript reference book… Hope it helps :mu:
You can do it only wit Flash. FMX2004 Prof Edition Has XMLSocket class, which can be used with apllications such as Chatting and online gaming.
thanks guys… do you know where can i find more info about that, maybe tutorials or some info of that sort??
btw thanks for the electroserver link… didn’t saw when i posted before.
I looked into this subject further over the summer and I actually wrote my own socket server. It is just Java, but, since I’m pretty inexperienceed in java, I have no idea how to set it up and run it on a server thats not my computer. If any one could help me. PM me. Thanx
No problem