Jump to content

JSON Stringifying sprites


The42ndTurtle
 Share

Recommended Posts

Is it possible to stringify sprites or get them into a string form that can be turned back into a sprite object? I am working on a multiplayer game using phaser and I need to be able to transfer sprite objects between clients. Using JSON.stringify notifies me that the sprite object is circular. When using a censor function to make it non circular, I get errors that parts of the sprite object have no toJSON method. Is there any way that I can transfer these objects between clients?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...