Sign in to follow this  
Rafaelx

TileSprites

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.