VBConst68 Posted January 25, 2014 Share Posted January 25, 2014 I'm new to HTML5 game development and am using Phaser. I decided to convert the tutorial to TypeScript as practice, but am getting an error. The offending line: this.scoreText = this.game.add.text(16, 16, 'Score: 0', { fontSize: '32px', fill: '#000' });I commented out the line and the error went away. The error: JavaScript runtime error: Unable to get property ''x' of undefined or null referenceThe error is thrown on Phaser.js line 24853, rect is undefined. Can anyone see what I'm doing wrong? Link to comment Share on other sites More sharing options...
Recommended Posts