Author Topic: Mysql/PHP/Flash RPG question  (Read 299 times)

dnexus

  • New Member
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Mysql/PHP/Flash RPG question
« on: July 11, 2012, 06:08:10 PM »
Hi, I'm making a single player Flash RPG which uses a turn based battle engine. Something I would like to be able to have would be online turn-based Player vs. Player battles. Realistically, could this be accomplished with anything short of a socket server?
Thanks!

RaythXC

  • PHP Programmer & Web-Designer
  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 395
  • Karma: 10
  • Freelance PHP Programmer/Web-Designer
    • View Profile
    • Rayth.Info
Re: Mysql/PHP/Flash RPG question
« Reply #1 on: July 11, 2012, 07:24:40 PM »
if it's turn based PvP you could do it in PHP and mysql where a player logs in, sees if its their turn and makes move. This would cause the game to be pretty slow overall playwise but it allows users to take as much time as they wish to make a move.
RaythXC - My Home Site
Note: most answers I give come from the php manual located at PHP.Net

dnexus

  • New Member
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Mysql/PHP/Flash RPG question
« Reply #2 on: July 11, 2012, 08:55:52 PM »
Well if I did it like that, I would give each player, say, 30 seconds to move before it automatically skips them and goes to the other player.

RaythXC

  • PHP Programmer & Web-Designer
  • Expert PHP Helper
  • Senior Member
  • *****
  • Posts: 395
  • Karma: 10
  • Freelance PHP Programmer/Web-Designer
    • View Profile
    • Rayth.Info
Re: Mysql/PHP/Flash RPG question
« Reply #3 on: July 12, 2012, 03:35:21 AM »
then php isn't your best option. Flash or something else would be your best bet, and yes if you want it mmorpg you will need a server thing with sockets.
RaythXC - My Home Site
Note: most answers I give come from the php manual located at PHP.Net