proyb2 Posted January 23, 2015 Share Posted January 23, 2015 I get Uncaught TypeError: Cannot read property 'hasLoaded' of undefined since the generateTexture() is a originally from Pixi API and group.create is part of Phaser API. How do I get pass the error? var hd1=new Phaser.BitmapText(gnote,0,0,'Arvx','H',54).generateTexture() var hd2=new Phaser.BitmapText(gnote,0,0,'Arvx','h',54).generateTexture() var sprite1=gnote.add.sprite(0,0,hd1,hd2) group.enableBody=true group.create(50, 150, sprite1) //Uncaught TypeError: Cannot read property 'hasLoaded' of undefined Link to comment Share on other sites More sharing options...
Recommended Posts