Hi!
I am trying to replace an object image (cache) and I found this thread about this but for some reason it didn’t work for me. This is what I did:
this.load.image('scnMap','assets/images/Map1.png');
this.textures.remove('scnMap');
this.load.image('scnMap','assets/images/Map2.png');
var scnPlay = this.add.image(0,0, "scnMap");
For some reason it still insists on to instantiate the Map1, making me believe that is is NOT removing the first image and neither loading the second.
Any idea of what I am doing wrong?
Thanks!
EDIT: It seems that it had been reported as a bug almost two years ago and was set as fixed, but unless I am doing something really wrong looks to me that it wasn’t really fixed. I am not using “atlas” though.