jamessimo Posted January 8, 2018 Share Posted January 8, 2018 I am making a level viewer for a game using phaser, I loop through a large array representing the game grid and take the item names from the game save and place them in my phaser world in a loop. I take whatever the game name for the item is and map it to a phaser image, my issue is that I don't want to map every possible item type to an image, if phaser askes for an image that i have not loaded, can I just ignore it without the green texture being plastered over it? Link to comment Share on other sites More sharing options...
samme Posted January 8, 2018 Share Posted January 8, 2018 Are you loading URLs that don't exist or creating objects with cache keys that don't exist? If it's the latter, you can use Phaser.Cache#checkImageKey first. Link to comment Share on other sites More sharing options...
Recommended Posts