Zeterain Posted December 4, 2013 Share Posted December 4, 2013 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 More sharing options...
rich Posted December 5, 2013 Share Posted December 5, 2013 Hmm, I wonder if Pixi suffers the same problem. I.e. if this was re-created with a straight Pixi source would it do the same (I suspect so, but need to double-check). Link to comment Share on other sites More sharing options...
Zeterain Posted December 16, 2013 Author Share Posted December 16, 2013 Hey, just wondering if you found anything new on this topic. Given how bitmapData objects are going, do you think text rendered on such an object would be covered by other bitmapData objects? Does that make sense? Link to comment Share on other sites More sharing options...
Recommended Posts