Jump to content

Failed to execute


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


  • Recently Browsing   0 members

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