Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running multiple scenes in parallel in Phaser 3.20.1

I am trying to make a score display that displays above my game and shows current scores. I have tried: this.scene.call("scene1", "scene2"); This did not work.

I can run one scene by using: this.scene.start("scene1"); but this.scene.start("scene1", "scene2"); only starts the first scene.

Is there a method I can use that will start 2 scenes in parallel?

like image 979
exciteabletom Avatar asked Oct 26 '25 05:10

exciteabletom


1 Answers

I had to use this.scene.launch("scene"); from inside another scene.

Example is here.

like image 111
exciteabletom Avatar answered Oct 28 '25 17:10

exciteabletom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!