weratius Posted July 3, 2015 Share Posted July 3, 2015 Hello! there is a boot.js file:game.load.image('weapon_2_2', 'img/profile/res/' + playerInfoObject.w4.id + '.png');game.load.image('weapon_2_3', 'img/profile/res/' + playerInfoObject.w5.id + '.png');I need to change the keys of already loaded images I do this like that:var loader = new Phaser.Loader(game);var myObject = this; //(my own parent object)loader.image('weapon_2_3', 'img/profile/res/' + playerInfoObject.w4.id + '.png', true);loader.image('weapon_2_2', 'img/profile/res/' + playerInfoObject.w5.id + '.png', true);loader.onLoadComplete.add(myObject.refresh);// Why can't I just load image without any callback (onLoadComplete)?//If I delete this callback method the loader won't work at allloader.start(); and here is the problem: I don't need a callback method (refresh method is empty) I have problems smth like that (On image) What should I do? Thank you =) Link to comment Share on other sites More sharing options...
xerver Posted July 3, 2015 Share Posted July 3, 2015 I think you mean to post this in the Phaser forum: http://www.html5gamedevs.com/forum/14-phaser/ Moved for you. Link to comment Share on other sites More sharing options...
Recommended Posts