Hi,
Just wondering if it is possible to define the scaling for a game only once in a single state (rather than in every state) and it is applied to all states thereafter? In the game I'm currently making I have a boot state and I want to define the scaling only once in the init function but it doesn't seem to apply to any following states and I have to define these settings on all pages:
This is the code I'm using for scaling if it helps at all:
init: function() {
this.scale.pageAlignHorizontally = true;
this.scale.scaleMode = Phaser.ScaleManager.USER_SCALE;
this.scale.setUserScale(0.445, 0.445, 0, 0);
},
I'm sure I must be missing something obvious. Any help would be appreciated.