Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Failed to execute


mrxj88
 Share

Recommended Posts

Hey guys i'm trying to have a camera follow my player(green box for now)  on my tile map. but im receiving this error. any idea what im doing wrong here?

Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)'
    at c.Tileset.draw (phaser.min.js:26)
    at c.TilemapLayer.renderRegion (phaser.min.js:26)
    at c.TilemapLayer.renderFull (phaser.min.js:26)
    at c.TilemapLayer.render (phaser.min.js:26)
    at c.TilemapLayer._renderWebGL (phaser.min.js:26)
    at c.World.b.DisplayObjectContainer._renderWebGL (phaser.min.js:7)
    at c.Stage.b.DisplayObjectContainer._renderWebGL (phaser.min.js:7)
    at b.WebGLRenderer.renderDisplayObject (phaser.min.js:7)
    at b.WebGLRenderer.render (phaser.min.js:7)
    at c.Game.updateRender (phaser.min.js:12)
draw @ phaser.min.js:26
c.TilemapLayer.renderRegion @ phaser.min.js:26
c.TilemapLayer.renderFull @ phaser.min.js:26
c.TilemapLayer.render @ phaser.min.js:26
c.TilemapLayer._renderWebGL @ phaser.min.js:26
b.DisplayObjectContainer._renderWebGL @ phaser.min.js:7
b.DisplayObjectContainer._renderWebGL @ phaser.min.js:7
b.WebGLRenderer.renderDisplayObject @ phaser.min.js:7
b.WebGLRenderer.render @ phaser.min.js:7
updateRender @ phaser.min.js:12
update @ phaser.min.js:12
updateRAF @ phaser.min.js:18
window.requestAnimationFrame.forceSetTimeOut._onLoop @ phaser.min.js:18

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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