Hello, I want to inherit from the Phaser.GameObjects.Sprite class, but I find that if I use “new” operator to create the object, nothing will be displayed on the canvas and the displayList property of the sprite is null.
let slime = new Phaser.GameObjects.Sprite(this, 100, 100, "slime_normal");
//Nothing is shown on canvas, and the displayList of slime is null
console.log(slime);
So If I simply extend the Phaser.GameObjects.Sprite, nothing will be shown. How to set the displayList property and inherit from the Sprite class ?