I think you’ll have to store the initial setXY values.
Maybe add a createCallback (or createMultipleCallback) (Group - Notes of Phaser 3)
{
createCallback: callback,
}
and then
var callback = function(gameObject) {
gameObject.initialX = gameObject.x;
}