Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

SCRIPT438: Object doesn't support property or method


everuniverse
 Share

Recommended Posts

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 locally

SCRIPT438: Object doesn't support property or method 'setScreenSize'

Phaser.Math.randomSign()// EDIT​: Phaser.Utils.randomChoice(-1, 1) // as noted from change log, works for me

SCRIPT438: 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.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...