fight system
Posted: Fri Jul 05, 2013 10:57 am
Hello can someone put Fighting script where player can fight with other player to hallsofvallhalla mmorpg browser based game (http://www.youtube.com/watch?v=0YqFFu5d ... D8EF52C1D2)
No there is a battle system with creatures !vitinho444 wrote:I haven't watched all his tutorials about it, but doesn't he cover that ?
Hum, I can't think of anything but you trying to upgrade it to PvP :/ I think you should worry on SP first just saying.SyllkiT wrote:No there is a battle system with creatures !vitinho444 wrote:I haven't watched all his tutorials about it, but doesn't he cover that ?
I think he wants a PvP system.Callan S. wrote:Not sure what's being asked for, but I set this up awhile ago to complete the monster combat, if you've watched the tutorial videos from 1 to 5.
http://indie-resource.com/forums/viewto ... =26&t=1353
Yes i want a PvP system ( i am noob in english )vitinho444 wrote:I think he wants a PvP system.Callan S. wrote:Not sure what's being asked for, but I set this up awhile ago to complete the monster combat, if you've watched the tutorial videos from 1 to 5.
http://indie-resource.com/forums/viewto ... =26&t=1353
PvP is difficult to pull off with PHP alone, since PHP is server-side, meaning everything has to be known at the time the request comes in to the server so it can create the HTML to send to the user. The problem with PvP in PHP is that if you try to attack another player, there is no way to notify them that they were attacked. PHP offers no way to reach back out to users once the page has loaded.SyllkiT wrote:Yes i want a PvP system ( i am noob in english )vitinho444 wrote:I think he wants a PvP system.Callan S. wrote:Not sure what's being asked for, but I set this up awhile ago to complete the monster combat, if you've watched the tutorial videos from 1 to 5.
http://indie-resource.com/forums/viewto ... =26&t=1353
Oops, I missread!vitinho444 wrote:I think he wants a PvP system.
That would still require a little bit of Javascript to timer the refresh, right? Nothing that you couldn't find on Google...or, right below this sentence:Callan S. wrote:Oops, I missread!vitinho444 wrote:I think he wants a PvP system.
On PVP, I think using the refresh command you could have timed turns, which would ensure the page both refreshes and the other player must act within X amount of time.
Code: Select all
<script>
setInterval(function() {
document.location.reload(true); //reloads the page...
}, 4000); //...every 4 seconds
</script>