davidv8 Posted April 18, 2014 Share Posted April 18, 2014 pls help-------------------------var renderTexture = this.game.make.renderTexture(200,200);var image = this.game.make.image('preloader');renderTexture.renderXY(image, 0, 0);this.game.add.tileSprite(0,0,200,200,renderTexture); -----------------------Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': No function was found that matched the signature provided. Link to comment Share on other sites More sharing options...
rich Posted April 18, 2014 Share Posted April 18, 2014 You can't do this. Link to comment Share on other sites More sharing options...
davidv8 Posted April 18, 2014 Author Share Posted April 18, 2014 You can't do this. it seems to be fine with sprite object, but not with tilesprite --------------------- var renderTexture = this.game.make.renderTexture(400,400); var image = this.game.add.image(0, 0, 'preloader'); renderTexture.renderXY(image, 220, 19, false); this.game.add.sprite(0,0,renderTexture);---------------------- Link to comment Share on other sites More sharing options...
davidv8 Posted April 18, 2014 Author Share Posted April 18, 2014 i end up using sprite and change y property in update function to achive scroll effect. Link to comment Share on other sites More sharing options...
Recommended Posts