Jump to content

Phaser.Text crop not working on Phaser 2.6.2


gcardozo
 Share

Recommended Posts

I'm trying to crop a Phaser.Text, so I can make something similar to the As3 TextField class (where your text is inside of a mask). But the crop method is not working, here is what I did:

this.pText = new Phaser.Text(this.game, 0, 0, text, style);
this.pText.crop(new Phaser.Rectangle(0, 0, 20, 20), true);
this.pText.updateCrop();

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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