Secretmapper Posted February 15, 2014 Share Posted February 15, 2014 Hello. How would I set a specific frame to show on tileSprite? Like this:background = game.add.tileSprite(0, 0, this.game.width, this.game.height, 'sheet', 'darkPurple');I know that this doesn't work, as tileSprite doesn't accept a frame parameter, but how would I achieve it? I have also tried: var bg = this.cache.getFrameData('sheet'); bg = bg._frames[bg._frameNames['darkPurple']]; background = game.add.tileSprite(0, 0, this.game.width, this.game.height, bg);to no avail Link to comment Share on other sites More sharing options...
XekeDeath Posted February 15, 2014 Share Posted February 15, 2014 At the moment, you can't. A TileSprite needs its own image, separate to the atlas. Link to comment Share on other sites More sharing options...
rich Posted February 15, 2014 Share Posted February 15, 2014 If it's any consolation I added support for this to 1.2 (as it was bugging me too). Link to comment Share on other sites More sharing options...
XekeDeath Posted February 15, 2014 Share Posted February 15, 2014 If it's any consolation I added support for this to 1.2 (as it was bugging me too). ^ Win, right here. Thanks, Rich! Link to comment Share on other sites More sharing options...
Recommended Posts