View Full Version : multiplayer game (flash & PHP)
flasholinos
10-11-2002, 04:10 PM
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?
ghost23
10-11-2002, 04:22 PM
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
tsomerville
01-09-2008, 05:20 PM
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!
abeall
01-27-2008, 10:30 PM
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.
jorgedbucaran
02-03-2008, 09:47 PM
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
tsomerville
02-04-2008, 08:38 AM
I just finished documenting step by step how a beginner can set up the code.
Check out http://flexjavagames.blogspot.com/2008/02/jags-14m-source-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.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.