Jump to content

TileSprites


Rafaelx
 Share

Recommended Posts

Hi all, Is support for these gone? looks like my tilesprites stopped working after updating Phacer to CE any ideas? I get no erros, and Im able to see it on a Desktop browser, but I'm unable to see it on the Android device what could cause this? Im using this because of the repeating background thing.

Link to comment
Share on other sites

No nothing :( this is my code below, all related to background:

preload here:

this.load.image("Backgame", "assets/stage/back.png");

this in my update function:

this.BackGame.tilePosition.x -= 1;

this is on my create function:

this.BackGame = this.game.add.tileSprite(0, 0, 6000, 720, 'Backgame');

and it works fine on Desktop like I said even in Emulator but once I build the apk, its a black background.

Link to comment
Share on other sites

ok looks like it has something to do with the naming, I was naming 2 different backgrounds changing the name made the difference, even if they are in different folders, if you have 2 images with same name it messes things on android, the computer is still smart enough to see the difference on them, also I lean that a Cap letter can have similar results, computer can still find the file if you put a cap on name and actual name has no cap, but Android cannot find it, so its fix, thanks man.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...