Jump to content

Remove cache from atlasJSONHash


fitness23
 Share

Recommended Posts

I have a game on mobile which gets slower and slower as you progress which I have identified down to the cache not being emptied. I have successfully loaded in a number of pngs and json files by using the following in a loop through JSON:
this.game.load.atlasJSONHash(theID, "image.png", "data.json");
Then I am successful in removing the sprite from the scene using the following:
item.destroy();
However when I try to then remove the png and json atlas json files from the cache, it errors, any ideas? I am using the following:
this.game.cache.removeTextureAtlas(theID);

Any help would be greatly appreciated :) I have successfully removed sounds and images, but not atlas.

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

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