Page 1 of 1

combat coding thingy ?

Posted: Wed Sep 22, 2010 7:35 pm
by tomtefan
iam almost happy with my game, but missing a good combat system to lift it up more.


have you people ever played the phantasy star serie ? or shining force ?
iam wondering about that combat system there.


whould be cool that have that advanced, but iam an easy guy, so phantasy star 1 is more than enough for me.
i whould be happy with just an effect showing on screen when attacking, using item, using magic..

but what program should i look for to get something similar to that as combat system ?

can i do it with php. ?? the effect stuff ? or will that be to much loading for a browser game ?

Re: combat coding thingy ?

Posted: Wed Sep 22, 2010 8:11 pm
by Chris
JavaScript/CSS is used for client side effects.

PHP is used for server side commands and processing.

Re: combat coding thingy ?

Posted: Thu Sep 23, 2010 3:41 pm
by Ravinos
I was working on a system similar to Phantasy Star 1-4 with my original browser game but I scrapped it because getting it to work for pvp combat was really wonky. Plus there are a large market of phone gamers who play these games that can't constantly run javascript.

I made use of pop-up div tags using javascript for the menu control. I.E. You click spells, a menu comes up, then you click what you want to use. Then it closes those windows and uses the spell you selected. It's actually quite simple to get running. But fine tuning is another story.

Here are a few examples: http://www.javascripttoolbox.com/lib/popup/example.php

Re: combat coding thingy ?

Posted: Thu Sep 23, 2010 5:10 pm
by Jackolantern
Ravinos wrote:I was working on a system similar to Phantasy Star 1-4 with my original browser game but I scrapped it because getting it to work for pvp combat was really wonky. Plus there are a large market of phone gamers who play these games that can't constantly run javascript.
If you use Javascript for aesthetics instead of functionality, you could create an option to turn it off for use on limited-browser mobile devices. Of course, that knocks AJAX techniques out of the picture.