How do I seperate multiplayer GUI display & global vars

  • How would one go about displaying the heads up display to many different players at once (MMO) as well as keeping track of statistics that can be taken from layout to layout (inventory held, stash items, levels)

    For the HUD I currently have them on various layers using 0,0 parallax and visibility toggle I forsee it displaying for all players instead of said manipulator is there any way around this?

    Can stats be done globally somehow or would you optimally store the information using some form of web storage?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Any data you wish to share among all peers must be communicated somehow, either via the built in sync or by messages.

    Once a peer receives the data, it is up to the local client how to store and display it.

    In the case of an MMO, depending on your scope, you might want to keep in mind the frequency and size of broadcasted updates as to not overload the host's bandwidth (remember that bandwidth loads scale exponentially with number of players).

    You can use global variables and layers to persist across layouts. Some objects are naturally global like array, others like sprites you can add the persist behavior to.

    This is when utilizing the built in multiplayer plugin. If you are using an external backend service, you have many different options available depending on the chosen provider. If you are trying to make an MMO, I would definitely suggest a backend service as optimal.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)