Jump to content

Bitmap Text Layering


Zeterain
 Share

Recommended Posts

This is probably most easily explained with an example.  

 

If I create sprite one, then bitmap text, then sprite two, I'd like the bitmap text to be above sprite one but bellow text two.

 

Here's some code demonstrating what I mean:

var sprite1 = game.add.sprite(0, 0, 'image');var bitmapText = game.add.bitmapText(0, 0, 'the text', styleObject);var sprite2 = game.add.sprite(0, 0, 'image');
However, in this case bitmapText is always rendered on top, and sprite2 is above sprite1. 
 
In fact, no matter what I do, any bitmap text will always render on top of everything else.  Is there any way to change this?
Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

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