Forum Topic: Multiplayer Lan Flash Game?

(185 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

Yashv1r

Reply To Post Reply & Quote

Posted at: 2/23/09 07:27 PM

Yashv1r NEUTRAL LEVEL 02

Sign-Up: 04/12/08

Posts: 24

wazup, is it possible to create a Multiplayer flash LAN Game???

Example: pac man. One player is pacman, one is a badguy. Movement vars are sent via php to be written to a file, (the hub of everyones position) and then read back into pacmans screen to update the badguys position. Of course Im sure there must be a better or rational way about going about it, thats where you come in..can u help???

Thanks in advance!
yash
www.holografik.co.za


None

criticalhammer1

Reply To Post Reply & Quote

Posted at: 2/23/09 08:48 PM

criticalhammer1 EVIL LEVEL 11

Sign-Up: 10/15/07

Posts: 371

its definately posssible over a server but Im not sure flash can use LAN

"get out of the car-NO NIKO! YOU GET OUT OF THE CAR"

BBS Signature

None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 2/24/09 03:06 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,326

You'll have to write a backend for Flash to do the LAN communication. It's kind of advanced so you might want to go for a public server. Though that's also advanced. But don't do that with PHP, that's impossibly slow.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

WolfAkela

Reply To Post Reply & Quote

Posted at: 2/24/09 04:13 AM

WolfAkela LIGHT LEVEL 08

Sign-Up: 12/19/05

Posts: 2,324

Iirc, won't Adobe Air support it?

The only "local multiplayer" Flash can do is on one computer running multiple SWFs.


None

henke37

Reply To Post Reply & Quote

Posted at: 2/24/09 07:40 AM

henke37 NEUTRAL LEVEL 22

Sign-Up: 09/10/04

Posts: 3,548

You want the Socket class. Just design a protocol on top of TCP and you can have multiplayer, both online and on LANs. Of course, Flash does not do listening sockets, so you have to use a separate process for that, but if you are even remotely capable of the Flash part, a separate process in another programing language should be easy to do. But with a special embeding solution, you could have the server and the flash player in the same process, but that is a bit overkill.

Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.


All times are Eastern Standard Time (GMT -5) | Current Time: 02:17 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!