Jump to content

Bitmap Text Layering


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

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