Biggerplay Posted April 25, 2014 Share Posted April 25, 2014 I've just upgraded my version of Phaser to the latest version and I'm getting this error...Uncaught TypeError: Cannot read property 'size' of undefined phaser.min.js:3:22205Caused by this linethis.loadingText = this.game.add.bitmapText(this.game.world.width/2, this.game.world.height/2, 'Loading...', { font: '48px Allgemeine', align: 'left' }); Link to comment Share on other sites More sharing options...
Vaughan Posted April 25, 2014 Share Posted April 25, 2014 From what version to which have you gone? Link to comment Share on other sites More sharing options...
Biggerplay Posted April 25, 2014 Author Share Posted April 25, 2014 From what version to which have you gone? I think it was 1.1.3, and I've upgraded to literally the latest master version on GitHub. Link to comment Share on other sites More sharing options...
Mike Posted April 25, 2014 Share Posted April 25, 2014 Well don't know in detail but did you check the Migration Guide:https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md Link to comment Share on other sites More sharing options...
Biggerplay Posted April 25, 2014 Author Share Posted April 25, 2014 Well don't know in detail but did you check the Migration Guide:https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md Thanks I'll have a look through, hopefully I'll see the issue. Link to comment Share on other sites More sharing options...
Vaughan Posted April 25, 2014 Share Posted April 25, 2014 BitmapText has had a bit of an overhaul - the signature for adding a BitmapText has changed to: x, y, font, text, size. See the docs and examples for details. Link to comment Share on other sites More sharing options...
Heppell08 Posted April 25, 2014 Share Posted April 25, 2014 Yeah bitmap text got revamped and made easier to add.It happened to me when I migrated over to newer phaser version too. Just check the examples on bitmap and it'll work after you change the way its added in. Link to comment Share on other sites More sharing options...
Recommended Posts