Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-11-2002, 03:10 PM   #1
flasholinos
Registered User
 
Join Date: Jul 2002
Posts: 8
Wink multiplayer game (flash & PHP)

Hi everybody! i have a problem!
I think to create a multiplayer trivia on line with flash php and mysql lets say for 2 people!
My problem is that i dont know how i can stop the first player when he answer (or the time is out) and start the other whithout refreshing the page! i want possessed flow .
Maybe someone knows some script flash or java or something with tcp/ip.
Is any tutorial with multiplayer flash games?
flasholinos is offline   Reply With Quote
Old 10-11-2002, 03:22 PM   #2
ghost23
nu' mal ganz ruhig ...
 
Join Date: Oct 2002
Posts: 36
Default multiplayer with xmlSocket an unity

hello,

this looks to me like a good project for the XMLSocket Object of Flash 5 and MX and the unity java server at moock.org.
there you can also find mor information on multiuser/player issues.

bye
ghost23 is offline   Reply With Quote
Old 01-09-2008, 04:20 PM   #3
tsomerville
Registered User
 
Join Date: Jan 2008
Posts: 5
Default JAGS 1.4 Open Source Game Server

This may solve part of your problem or give you ideas.

I'm offering my Java / Actionscript Game Server (JAGS 1.4) up to the world.

I can help you set it up and answer any questions (since the only documentation is inside the code).

Last summer, I pieced together all kinds of tutorials to get a working multiplayer game solution. Also have a java server up and running you can use to test things with.

See fireleg.com to play pong, or go to fireleg.com/jags.html to look at all the code.

Contact me at travis -at- fireleg.com for any assistance.
Good luck on your game!
tsomerville is offline   Reply With Quote
Old 01-27-2008, 09:30 PM   #4
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,812
Send a message via AIM to abeall
Default

Just use polling. Make a request to the server every 5 seconds, or every second if you feel like it, depending on how often you want it to update. For something turned based like you describe, you don't need real time millisecond response and data push from the server.

On the server, you just have a script(PHP in your case) which is what you hit every 5 seconds, maybe it takes credentials or even uses sessions, then it does data base lookups or whatever it needs to determine what response to give (ie your turn is over, now it's your turn, new question data, etc), and it echos back a string formatted as URL variables or XML (url variables are faster) which the Flash then processes.

The advantage to this is you don't have to get into installing special servers on your box and messing with all that.
abeall is offline   Reply With Quote
Old 02-03-2008, 08:47 PM   #5
jorgedbucaran
Registered User
 
Join Date: Sep 2007
Posts: 41
Default

Quote:
Originally Posted by tsomerville View Post
This may solve part of your problem or give you ideas.

I'm offering my Java / Actionscript Game Server (JAGS 1.4) up to the world.

I can help you set it up and answer any questions (since the only documentation is inside the code).

Last summer, I pieced together all kinds of tutorials to get a working multiplayer game solution. Also have a java server up and running you can use to test things with.

See fireleg.com to play pong, or go to fireleg.com/jags.html to look at all the code.

Contact me at travis -at- fireleg.com for any assistance.
Good luck on your game!
Hello,

Yes I would like a little of assistance on how setting up the Java (server-side application) project. I have no idea where to start. (New to Java)

Thanks,
Jorge
jorgedbucaran is offline   Reply With Quote
Old 02-04-2008, 07:38 AM   #6
tsomerville
Registered User
 
Join Date: Jan 2008
Posts: 5
Wink JAGS 1.4m Tutorial

I just finished documenting step by step how a beginner can set up the code.
Check out http://flexjavagames.blogspot.com/20...available.html

Please feel free to leave comments on my blog (http://flexjavagames.blogspot.com), or send emails.

I'm very active right now with this. Very very close to integrating APE Physics engine as well.
tsomerville is offline   Reply With Quote
Old 05-28-2010, 05:43 AM   #7
moock
Registered User
 
Join Date: Feb 2009
Posts: 2
Default

Sorry to necro a very old thread, but folks looking for tutorials/sample code for multiplayer games can find info on creating chat, lobbies, game rooms, logins, and specific games such as pong and fridge magnets here:

http://www.unionplatform.com/?page_id=1216

The examples run on the Union Platform, a development platform for creating multiuser applications. The Union Platform includes the Union Server, a multiuser communications server, and Reactor, an ActionScript 3.0 framework for creating Adobe Flash client applications.

Union has an entirely free licence for 1000-users for both commercial and noncommercial projects. It also has a live test server anyone can use to get started without installing any applications or writing any server-side code.

Hope that helps!

colin

(ps: as a historical note, "Unity", which was mentioned earlier in this thread, evolved into the Union Platform.)
moock is offline   Reply With Quote
Old 06-01-2010, 12:43 AM   #8
abeall
Senior Member
 
Join Date: Feb 2006
Location: Washington, DC
Posts: 2,812
Send a message via AIM to abeall
Default

Wow, Union/Unity is looking really cool, moock!
__________________
Aaron Beall | Flash portfolio | Fireworks extensions | Twitter
abeall is offline   Reply With Quote
Old 07-10-2010, 12:05 AM   #9
sneakyimp
Senior Member
 
Join Date: Dec 2003
Location: Silver Lake
Posts: 340
Send a message via AIM to sneakyimp
Default

I guess I'll jump in here too.

I've written AS3/PHP5 socket server. Tutorial here:
http://flashmog.net/docsStaging/tutorial-shooter.php
__________________
Write multiplayer games with FlashMOG 0.3.1
Try the MyPlan Salary Calculator
sneakyimp is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:23 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.