How to repeat object

Hi, someone can help me please ? I’m new in phaser. I try to make a space shooter. I’d like to bring the ships back to the top of the screen when they explode. i arrive to make the animations of the explostion but after that the ships don’t appear again in the screen. i’m using this function.
resetShipPos(ship) {
ship.y = 0;
var randomX = Phaser.Math.Between(0, config.width);
ship.x = randomX;
}

destroyShip(pointer, gameObject) {

    gameObject.setTexture("explosion");

    gameObject.play("explode");

    this.resetShipPos(ship);

}

someone have an idea

please check that you don’t use ship.destroy() somewhere in your code, which would destroy the sprite - to check if the sprite is still there you could place a console.log(ship) in your “resetShipPos” Method