Jump to content

Phaser.Cache Errors in 2.4.4


Kartou
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

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