Jump to content

Phaser js text crop


Apkko
 Share

Recommended Posts

this.journal.text = game.add.text(x,y, this.journal.textString,  { font: ""+(gameSettings.journal_chat_block.hP*5)+"px Arial", fill: "#000000", align: "left",maxLines: 15,wordWrap: true, wordWrapWidth: w}, this.groupArray['journal']);

 

var cropRect = new Phaser.Rectangle(0,0,100,100);

this.journal.text.crop(cropRect);

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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