Jump to content

Problem TileSprite


i3Designer
 Share

Recommended Posts

w = window.innerWidth; 

 

//NO

   game.load.image('bg','sfondo-1.jpg'); // x = 300 y=7000

   game.world.setBounds(0,0,w,7000)

   sfondo = game.add.tileSprite(0, 0, w, 7000, 'bg');

 

//YES

  game.load.image('bg','sfondo-2.jpg'); // x = 300 y=3000

  game.world.setBounds(0,0,w,3000)

   sfondo = game.add.tileSprite(0, 0, w, 3000, 'bg');

 

it happens that when I drop my sprites 'box' you can not see the image. 

If I use an image x = 300 and y = 3000 everything works, I do the same thing but changing y = 7000.

 

I can not explain D:

post-7059-0-47655700-1402773463.png

post-7059-0-76003800-1402773619_thumb.pn

post-7059-0-57337900-1402773621_thumb.pn

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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