ForgeableSum Posted June 2, 2015 Share Posted June 2, 2015 I've noticed that if I create bitmap data, cache it, then do some operations on the original bmd (such as drawing), the cached version will have the same drawing operations applied as well. Is this expected behavior? If so, is there any way to cache the bmd in such a way that it doesn't mirror the original when you perform operations on it? Link to comment Share on other sites More sharing options...
drhayes Posted June 2, 2015 Share Posted June 2, 2015 I think it is -- the cache is referring to the original object that you made instead of copying it. Naming things is hard, maybe it should be a Map or a Directory? Anyhoo. Maybe http://phaser.io/docs/2.3.0/Phaser.BitmapData.html#copy? Link to comment Share on other sites More sharing options...
Recommended Posts