I’m trying to make sense of Scene Events as noted in Phaser 3 API Documentation - Namespace: Events for eg. the “boot” event.
The documentation states:
Listen to it from a Scene using:
this.scene.events.on(‘boot’, listener)
I’m creating my scenes using
const testScene = new Phaser.Scene(“testScene”);
Where do I put this line? I’ve tried adding it to the init function of the scene, but it has no effect.
However adding create, preupdate, update, postupdate handlers works.