charlie_says Posted November 20, 2016 Share Posted November 20, 2016 I'm just playing about with some bitmapdata and have hit a bit of a wall. game.cache.getBitmapData('ball'+team);// returns null game.cache.getimage('ball'+team);//returns the image game.cache.checkBinaryKey('ball'+team);// evaluates false I'm guessing the bitmapdata is returning null because the key isn't there - but the image definitely is there and works... Where am I going wrong? Link to comment Share on other sites More sharing options...
Darko Posted November 21, 2016 Share Posted November 21, 2016 I haven't played with game.cache but just trying to help looking at http://phaser.io/docs/2.4.4/Phaser.Cache.html ...have you tried with checkImageKey or checkKey? Link to comment Share on other sites More sharing options...
samme Posted November 21, 2016 Share Posted November 21, 2016 What have you done before that? I can't tell what should be in the cache and where. Link to comment Share on other sites More sharing options...
Recommended Posts