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

 Share

  • Recently Browsing   0 members

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