Tag Info

New answers tagged

0

How can I know whether a player is connected? There are several ways, but you could use an AJAX request that pings every 10 seconds. If the user last timestamp was in the last 10+1 seconds, he should still be 'connected'. How can I detect when a player closes the browser, and set them to disconnected? Use the above solution, the user simply times ...


0

Don't create an algorithm! Determine what you want to happen, first. Do you want player skill to trump stats? How much of a level difference should a skillful player be able to overcome? How much benefit should high level/experience/age in a character make? Does strength trump armor, or agility trump strength? Set the parameters of exactly what you ...



Top 50 recent answers are included