Error reading undefined 'cut' when restarting scene in phaser 3

I am working on a platformer style game in phaser 3 using arcade physics and Canvas graphics. At a point in my code I would like to completely restart the current scene, and I do so using this.scene.restart. Any time I attempt this it gives me the error "Cannot read properties of null (reading 'cut')". When using WebGl graphics it gives me another error of "Cannot read properties of null (reading 'glTexture')". Any help in knowing what this means or how to fix it would be appreciated. line 59494 for WebGl and 26816 for Canvas.



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)