jonbon Posted January 2, 2014 Share Posted January 2, 2014 Hi, I think there is a bug with TileSprite when using a frame of a sprite atlas instead of a single image. When I try to do this, the whole sprite atlas gets repeated instead of the desired frame. So when I do:this.game.add.tileSprite(0, 0, 800, 600, 'generalAtlas','pitchTexture1.png'); I get the whole atlas repeating. I checked that it's not a problem with my atlas by trying the same thing but in a regular Sprite:this.game.add.sprite(0, 0, 'generalAtlas','pitchTexture1.png'); This works fine. Is this a bug? Or am I doing something wrong? Thanks Link to comment Share on other sites More sharing options...
rich Posted January 2, 2014 Share Posted January 2, 2014 Actually it's both correct and a bug The bug is that Phaser shouldn't let you set a frame from the atlas, and should require you to set the image only. So I will remove the frame parameter now. The correct part is the way it repeats the whole image. Link to comment Share on other sites More sharing options...
jonbon Posted January 2, 2014 Author Share Posted January 2, 2014 Ah, ok, it would be quite useful to be able to use an atlas frame as a repeatable image but at least I now know i'm not missing something. Thanks. Link to comment Share on other sites More sharing options...
rich Posted January 2, 2014 Share Posted January 2, 2014 Yeah it would, but the WebGL renderer just isn't set-up to cope with that kind of use. In Canvas it's easier, but the aim is to keep consistency across both renderers. Link to comment Share on other sites More sharing options...
Recommended Posts