Updated Factory to add to parent.

This commit is contained in:
photonstorm 2016-10-14 02:21:04 +01:00
parent a85e8cf713
commit c5088d4ba6

View file

@ -26,7 +26,7 @@ Phaser.GameObject.Image.FACTORY_ADD = function (x, y, key, frame, group)
{
if (group === undefined) { group = this.world; }
return group.add(new Phaser.GameObject.Image(this.game, x, y, key, frame));
return group.children.add(new Phaser.GameObject.Image(this.game, x, y, key, frame));
};
/**