Vishal Gupta Posted June 30, 2016 Share Posted June 30, 2016 Hi All, I want to make effect of moving a sprite in loop infinitely like i have a chain image and i want to move its y position on update so it looks like its running all time. Link to comment Share on other sites More sharing options...
XekeDeath Posted June 30, 2016 Share Posted June 30, 2016 Have a look at TileSprite and the autoScroll function... http://phaser.io/docs/2.5.0/Phaser.TileSprite.html#autoScroll this.chain = this.game.add.tileSprite(0, 0, 24, this.game.height, 'chain'); this.chain.autoScroll(0, 25); Vishal Gupta 1 Link to comment Share on other sites More sharing options...
Vishal Gupta Posted June 30, 2016 Author Share Posted June 30, 2016 1 hour ago, XekeDeath said: Have a look at TileSprite and the autoScroll function... http://phaser.io/docs/2.5.0/Phaser.TileSprite.html#autoScroll this.chain = this.game.add.tileSprite(0, 0, 24, this.game.height, 'chain'); this.chain.autoScroll(0, 25); Thanks, Link to comment Share on other sites More sharing options...
Recommended Posts