Jump to content

BitmapFont multiple colours?


agmcleod
 Share

Recommended Posts

Been working on converting a game I wrote in Java. Currently the java game references multiple bitmap fonts. They're the same font face & size, with italic variants and colours. Since the add.bitmapText simply uses the font face key, I thought about simply editing the XML to change the font face key to something unique for each one. But I was wondering if there's a simpler way to manipulate colour in Phaser.

Link to comment
Share on other sites

Right now you'd literally have to have the BitmapText image in various colours, as it's drawn from image data (not rendered with canvas). In Phaser 1.2 you can tint the BitmapText, so that should allow for colour variation - but not it will be per text object, not per letter or word within a text object.

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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