Jump to content

I got an error use tileSprite renderTexture param


Recommended Posts

pls help


var renderTexture = this.game.make.renderTexture(200,200);

var image = this.game.make.image('preloader');

renderTexture.renderXY(image, 0, 0);




Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.

Link to comment
Share on other sites

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);
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...