fight system
fight system
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)
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: fight system
I haven't watched all his tutorials about it, but doesn't he cover that ?
Re: fight system
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 ?
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: fight system
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 ?
Sorry i can't help you :S
Re: fight system
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
http://indie-resource.com/forums/viewto ... =26&t=1353
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: fight system
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
Re: fight system
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
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: fight system
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
The two options are to integrate a PvP system in Javascript, which is outside the scope of the original MMO browser tutorials, or, the more common PHP PvP solution, is to create kind of a "PvP by mail" system where players trade hits over time. In a system like that, a player logs in, and checks their PvP battles. They trade a hit back to all the people who hit them while they were logged out. That is probably not the kind of PvP you want, though, which would mean Javascript would be required. I think Halls' next browser MMO tutorial series (coming sometime soon) is going to have more Javascript.
The indelible lord of tl;dr
Re: fight system
Oops, I missread!vitinho444 wrote:I think he wants a PvP system.
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
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.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: fight 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>
The indelible lord of tl;dr