fitness23 Posted December 1, 2015 Share Posted December 1, 2015 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 More sharing options...
fitness23 Posted December 2, 2015 Author Share Posted December 2, 2015 The error I keep getting in the console is: Uncaught TypeError: Cannot convert undefined or null to object Link to comment Share on other sites More sharing options...
threedollarbill Posted May 11, 2016 Share Posted May 11, 2016 im having the same problem.. have you found a solution to this yet? how does one remove an atlasJSONHash from the cache? Link to comment Share on other sites More sharing options...
Recommended Posts