Game work with the old version 2.0.6. But they get this error after switching to 2.4.2

TypeError: this.scale.setScreenSize is not a function

any Idea how to solve this ?


1 Answer 1


I found this in the changelog:

Deprecated [...] ScaleManager.setScreenSize (see updateLayout)

Try replacing your call to setScreenSize with updateLayout -- that worked for me.

  • 1
    \$\begingroup\$ Sure thing! I had the same problem, so I'm glad I could pass on a fix. \$\endgroup\$
    – ojrac
    Commented Aug 8, 2015 at 0:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .