Answer the question
In order to leave comments, you need to log in
How to make a single background (linear gradient) for all Scenes in Phaser 3?
Now on the initial Scene in the create() method I do the following to create a background :
this.background = this.add.graphics();
this.background.fillRect(0, 0, 180, 320);
this.background.fillGradientStyle(0x8e44ad, 0x8e44ad, 0x2980b9, 0x2980b9);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question