i3Designer Posted December 2, 2014 Report 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.