Jump to content

Scale a tileSprite?


Biggerplay
 Share

Recommended Posts

Can you scale a tileSprite?

 

I have this background which is 1024x600, which I wanted to be a tileSprite, obviously that's the wrong size so I thought I'd make it 1024x1024, and just set the scaleY to 0.5 (close enough to what I wanted) and it would work, but it doesn't seem too. Here's the code

 s = this.game.add.tileSprite(0, 0, 1024, 1024, 'background1'); s.scaleY = 0.5;

What am I doing wrong?

 

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

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