i3Designer Posted December 2, 2014 Share Posted December 2, 2014 I'm creating a game, and I'm board using 3 backgrounds with three different movements:create: function(){ this.sfondo = game.add.tileSprite(0,h-270,w,162,'sfondo'); this.testa = game.add.tileSprite(0,h-160,w,92,'prova'); this.pavimento = game.add.tileSprite(0,h-68,w,68,'pavimento');} update: function(){ this.testa.tilePosition.x -= 0.35; this.pavimento.tilePosition.x -= 1.5; this.sfondo.tilePosition.x -= 0.20;} If the computer game, the game is perfect, but on the mobile goes very slow.The problem is the tileSprite, but I can not create a remedy, advice? Link to comment Share on other sites More sharing options...
Recommended Posts