0
Jungs!Wie neu schreiben Pfad der geladenen AtlasJSONHash?
In den boot.js Datei ich eine atlastexture laden
game.load.atlasJSONHash('MyShip', urlForImages + 'img/animatedObjects/ships/' + playerInfoObject.ship.id + '.png', urlForJSONS + 'img/animatedObjects/ships/' + playerInfoObject.ship.id + '.json');
Dann muss ich mit diesem Schlüssel ein anderes Bild laden, und ich tue dies:
var loader = new Phaser.Loader(game);
loader.atlasJSONHash('MyShip', configObj.urlForImages + 'img/animatedObjects/ships/' + playerInfoObject.ship.id + '.png', configObj.urlForJSONS + 'img/animatedObjects/ships/' + playerInfoObject.ship.id + '.json');
loader.onLoadComplete.add(function() {
console.log('done')
});
loader.start();
Aber dieses Bild ist nicht neu schreiben ...
Wie kann ich ein solches Problem lösen?
Danke =)