I just want the text centered on the node it’s attached to. I’ve checked the tutorials and many forum threads. I’ve tried using BitmapText’s getLineWidth() & getLineHeight(). I’ve tried using BitmapText’s.setBox() and setAlignment(Align.Center). Neither have produced the results I expected. Can anyone provide an example of how you’d center the bitmap text in this example?
Set the text position to the lower left corner of the card. Then set the text box size of the BitmapText to the full size of the card. Then set the alignment to center.
Thank you for both of your responses. I tried Darkchaos’s suggestion first and it seemed to do the trick. getLineWidth() and getLineHeight() seem to not take the scale into account. This is unintuitive to me but might have been done for a particular reason. Perhaps I might suggest another set of methods getScaledLineWidth() getScaledLineHeight()?