I’m trying to impelemt item pick up and drop in my game.
For picking up I’m doind this:
player.addChild(goldenKey);
goldenKey.x = 0;
goldenKey.y = 0;
Question is how to ‘drop’ the item?
When I do
player.removeChild(goldenKey);
goldenKey.reset(goldenKey.realX, goldenKey.realY);
item disappers somewhere.
I think that I have to set Phaser.World as parent again to make it visible.