Search the Community
Showing results for tags 'setScreenSize'.
-
I receive following errors using Phaser 2.4.2.: // Apply scale changes in the create function of the boot stategame.scale.setScreenSize(true);// EDIT: ScaleManager.updateLayout() // as noted from change log, but doesn't work for me testing locallySCRIPT438: Object doesn't support property or method 'setScreenSize' Phaser.Math.randomSign()// EDIT: Phaser.Utils.randomChoice(-1, 1) // as noted from change log, works for meSCRIPT438: Object doesn't support property or method 'randomSign' My workaround for the 'randomSign' error: game.rnd.weightedPick([-1, 1]);But I can't fix the 'setScreenSize' error.
-
- script438
- setscreensize
-
(and 1 more)
Tagged with:
-
i need some help understanding as to what ScaleManager and setScreenSize(true); do. this.game.scaleMode = Phaser.ScaleManager.SHOW_ALL;this.game.scale.setScreenSize(true);