Stephan Posted March 29, 2019 Share Posted March 29, 2019 Hi @enpu, I just encountered a bug in the TimingSprite class. It appears when you try to add multiple tiles to the game.: game.module( 'game.main' ) .body(function() { game.addAsset('panda.png') game.addAsset('cloud1.png') game.createScene('Main', { init: function() { this.sprite = new game.TilingSprite('panda.png', game.width, game.height).addTo(this.stage); //this semi-transparent tile replaces the texture of the first tile! this.sprite2 = new game.TilingSprite('cloud1.png', game.width, game.height).addTo(this.stage); //this however does work //this.sprite2 = new game.Sprite('cloud1.png').addTo(this.stage); }, }); }); I added an example project as attachment so you can reproduce the problem easily ? example.zip Quote Link to comment Share on other sites More sharing options...
enpu Posted March 29, 2019 Share Posted March 29, 2019 Hi! Thanks for the info. Try to update engine to latest dev version, should be fixed there. Quote Link to comment Share on other sites More sharing options...
Stephan Posted March 29, 2019 Author Share Posted March 29, 2019 Thanks for your quick response. It works perfectly! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.