StanJan Posted August 23, 2016 Share Posted August 23, 2016 Hello, I'm using a tilesprite to repeat the current frame of the animation across the width of the sprite. When I try to animate this tilesprite, it just gets stuck on the first frame of the animation. Whenever I change the tilesprite to sprite it does work, but then it stretches instead of repeating the pattern. this.visualpipe = this.game.add.tileSprite(x2, y2, width2, height2, 'pipe', 0); this.visualpipe.animations.add('flow', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], 16, true, true); this.visualpipe.animations.play('flow', 5); Thank you! Link to comment Share on other sites More sharing options...
P4nch0 Posted August 23, 2016 Share Posted August 23, 2016 Hi, Show what tilesprite it is, and screen of what you have got when you play animation Link to comment Share on other sites More sharing options...
StanJan Posted August 23, 2016 Author Share Posted August 23, 2016 6 minutes ago, P4nch0 said: Hi, Show what tilesprite it is, and screen of what you have got when you play animation This doesn't animate. When I change it to a sprite instead of tileSprite, it does animate but becomes stretched like this: Link to comment Share on other sites More sharing options...
StanJan Posted August 23, 2016 Author Share Posted August 23, 2016 Another way I could fix this is by making every pipe an unique sprite in the same group. It works with this, but it's is a lot more extra code though. Link to comment Share on other sites More sharing options...
Recommended Posts