klavixs
Account Closed
- Impact
- 6
i need some help this one has been my beast for the past month.ive been putting it off cuase i dont know where to start so here it is.
What im trying to do:
I needed a rpg like battle fucntion that is asyncrnous(if spelled right).
what i mean is lets say :
person a is online
and
person b is online
person a click attack button to attack person b
person a waits a few seconds for the result (while)
person b finds out person a wants to fight and confirms the battle
then person a now knows the fight is on and
person a enters battle screen and also person b enters battle screen
--now each person has stats that is the variable for speed but for example lets says a set timer for each player--
{Player a must wait 3 seconds between attacks}
{player b must wait 2 seconds between attacks}
player a hits player b and both players instantly now how much damage was served
--please note this is all instant realtime using ajax(not my specialty)--
so anyways each player will continue hitting each other till one is dead and each must wait there set wait time before next hit
so i hope this part is understood
so what i need from the willing and intelligent programmers here is a example i will edit later for usage with the rest of my code. i would ask it be in php and ajax but others is fine i can at least get the logic of it.
i appreciate any help and if you have any questions please ask
i just need a basic script in php and ajax (others if needed((im using a mysql also)) ) that can do this and is all realtime(ajax).
Thank you all for your help
What im trying to do:
I needed a rpg like battle fucntion that is asyncrnous(if spelled right).
what i mean is lets say :
person a is online
and
person b is online
person a click attack button to attack person b
person a waits a few seconds for the result (while)
person b finds out person a wants to fight and confirms the battle
then person a now knows the fight is on and
person a enters battle screen and also person b enters battle screen
--now each person has stats that is the variable for speed but for example lets says a set timer for each player--
{Player a must wait 3 seconds between attacks}
{player b must wait 2 seconds between attacks}
player a hits player b and both players instantly now how much damage was served
--please note this is all instant realtime using ajax(not my specialty)--
so anyways each player will continue hitting each other till one is dead and each must wait there set wait time before next hit
so i hope this part is understood
so what i need from the willing and intelligent programmers here is a example i will edit later for usage with the rest of my code. i would ask it be in php and ajax but others is fine i can at least get the logic of it.
i appreciate any help and if you have any questions please ask
i just need a basic script in php and ajax (others if needed((im using a mysql also)) ) that can do this and is all realtime(ajax).
Thank you all for your help










