Recieving events from the currently activ scenes

Hi,
I just started with UI scenes and how to get events from other scenes via scene.get() and events.on().

Maybe I searched for the wrong things, but is there a way to listen to events from (all) currently active scenes? Or from “the scene that started this (the UI scene)”?

The reason is that I want to make a single UI scene class and use it on all level scenes, but by using scene.get(“sceneName”) I would have to write the same code only with different scene keys to listen to all possible scenes.
I try to avoid that.

You could create a global eventEmitter.

var eventEmitter = new Phaser.Events.EventEmitter();

Then every scene can just use eventEmitter.emit() and on().

Works fine, thanks. :slight_smile: