Jump to content

include text to setTexturePriority()


Recommended Posts

Hello. guys. Reading this tutorial I noticed that bitmatText can be included into setTexturePriority array:

var enabled = this.game.renderer.setTexturePriority(['boat', 'skier', 'pole', 'rock', 'shark', 'sea', 'waves']);

if (enabled.length < this.game.renderer.maxTextures)
    //  Enable for the BitmapFont
    this.game.cache.getBitmapFont('fat-and-tiny').base.textureIndex = enabled.length + 1;


Can I do the same using simple text?

Text is created sth like

var myTextStyle = { font: "32px Century Gothic", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle", align: "center" };

var myText = game.add.text(0, 0, "Just text example...", myTextStyle);

Any help is appreciated!

Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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