Kartou Posted October 27, 2015 Share Posted October 27, 2015 Hi! I just updated from Phaser 2.2.2 to 2.4.4 and i'm now experiencing sporadic errors from the cache during GameState create, like this: Phaser.Cache.getImage: Key "http://linkttoimage.com/Background.jpg" not found in Cache. I see this on both Chrome and Firefox, but Internet Explorer 11 seems fine. I believe this is a timing issue, since if I stop execution with a breakpoint in the start of the GameState create method I do not see the issue. Also refreshing a couple of times usually makes the problem go away, and all assets are available in the cache again. Cheers,Klaus Link to comment Share on other sites More sharing options...
Kartou Posted October 27, 2015 Author Share Posted October 27, 2015 SOLVED: In my helper function I called game.load.start() once for each asset i preloaded. This gave some weird behaviour where the preload method would exit prematurely. I removed game.load.start() and now it seems to work consistently. Link to comment Share on other sites More sharing options...
Recommended Posts