在 Phaser 3.20.1 中并行运行多个场景

exc*_*tom 4 javascript frameworks phaser-framework

我正在尝试制作一个分数显示,显示在我的游戏上方并显示当前分数。我已经尝试过: this.scene.call("scene1", "scene2");不起作用

我可以使用以下命令运行一个场景: this.scene.start("scene1");this.scene.start("scene1", "scene2");只启动第一个场景。

有没有一种方法可以并行启动 2 个场景?

exc*_*tom 5

我必须this.scene.launch("scene");从另一个场景中使用。

例子在这里。

  • 您还应该能够在每个单独的场景中使用 [game.scene.add](https://photonstorm.github.io/phaser3-docs/Phaser.Scenes.SceneManager.html#add__anchor),并将 autoStart 设置为“true” ` (2认同)
  • 我不知道!谢谢 (2认同)