I can’t position a tiling sprite in the center of the canvas.
this.hw, this.hh, this.w, this.h
is width and height, half width, half height of the canvas.
let ts = this.add.tileSprite(this.hw, this.hh, this.w, this.h,'bg_menu');
ts.x = this.hw
ts.y = this.hh
ts.tilePositionX = -this.hw
ts.tilePositionY = -this.hh
This is the closest I came to center it, except the center shows the edges instead of the center of the image.
I set scale mode to resize, and reload scenes on resize, with the updated width height values.