Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network game tutorial

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
BE
Does anyone know if and how one should create a network game in flash (e.g.a game to play chess against each other over the net)
I have been searching for a good tutorial but havn't found ANY. I know flash can uses xml but how can I use this in a game ?

Some info or a link to a tutorial would be great.

thnx a lot! Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
If you're doing a game like chess that doesn't require real-time interaction you could just use a database to hold the moves and two people could read from that to get the right display. Update every five seconds or so.

Otherwise, for real-time play, you need to look at using XML Sockets. There's some good stuff on moock.org about that (how to build chat applications which could easy be turned around into games engines) and the basics are handled in the Flash manual. You're also probably going to need some Perl or Java running on the server to handle the interactions.

If you're using Flash 5 this will be very slow so MX is going to be your best bet.
 
Can you connect flash to flash ? or does there always have to be a server between it ?
You probably can't use another port than 80 can't you ? Greetz,
muppeteer.gif

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top