Skip to main content
More precise title and tags. Rephrased to specifically ask *how*.
Source Link
Anko
  • 13.5k
  • 10
  • 56
  • 82

Java online How can I avoid sending the full game npc movementstate so often?

I'm making a real-time 2D mmorpg gameMMORPG in real time on java. I'm facing a trouble sending position of surrounding players and npcsJava. Currently data of the all surrounding npcsNPCs' and playersplayers' data is sent tooso frequently causing Client to crash - itthat the client crashes—it can't handle the data as fast as it's receiving it.quickly enough. it must be sentI'm sending data so frequently because of healths and stuff must be updated pretty fast? So.to make sure the game state stays up to date. I'm asking how is that kind of stuff normally done

Is there an alternative? maybeShould I should make it so that it sends client ansend information about theonly when needed, like when health lose/movementis lost or something moves, instead of updating the whole object every time? and only send the stuff when neededHow do I do this?

Java online game npc movement

I'm making 2D mmorpg game in real time on java. I'm facing a trouble sending position of surrounding players and npcs. Currently data of the all surrounding npcs and players is sent too frequently causing Client to crash - it can't handle the data as fast as it's receiving it.. it must be sent frequently because of healths and stuff must be updated pretty fast? So.. I'm asking how is that kind of stuff normally done? maybe I should make it so that it sends client an information about the health lose/movement instead of updating the whole object? and only send the stuff when needed?

How can I avoid sending the full game state so often?

I'm making a real-time 2D MMORPG in Java. Currently data all surrounding NPCs' and players' data is sent so frequently that the client crashes—it can't handle the data quickly enough. I'm sending data so frequently to make sure the game state stays up to date.

Is there an alternative? Should I make it send information only when needed, like when health is lost or something moves, instead of updating the whole object every time? How do I do this?

Source Link

Java online game npc movement

I'm making 2D mmorpg game in real time on java. I'm facing a trouble sending position of surrounding players and npcs. Currently data of the all surrounding npcs and players is sent too frequently causing Client to crash - it can't handle the data as fast as it's receiving it.. it must be sent frequently because of healths and stuff must be updated pretty fast? So.. I'm asking how is that kind of stuff normally done? maybe I should make it so that it sends client an information about the health lose/movement instead of updating the whole object? and only send the stuff when needed?