Jump to content

Phaser group and Pixi generateTexture error


proyb2
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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