The42ndTurtle Posted August 14, 2020 Share Posted August 14, 2020 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 More sharing options...
Recommended Posts