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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept