Hello, is there any way haw to loop background image in Phaser 3?
I tried to something like this :
function preload() {
game.load.image("background", "background.png");
},
function create() {
var background = game.add.tileSprite(0, 0, 500, 500, "background");
},
function update() {
background.tilePosition.x += 0.5;
},
but this isn't working.
Thanks for any help