alliell Posted April 24, 2018 Share Posted April 24, 2018 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 Link to comment Share on other sites More sharing options...
rich Posted April 26, 2018 Share Posted April 26, 2018 It's not `game` - don't use `game` at all in Phaser 3. http://labs.phaser.io/view.html?src=src\game objects\tile sprite\Example.js Link to comment Share on other sites More sharing options...
Recommended Posts